#Camera “system” don’t works
1 messages · Page 1 of 1 (latest)
here is the script
local Player = game.Players.LocalPlayer
local tweenService = game:GetService("TweenService")
local Char = Player.Character
local Camera = game.Workspace.CurrentCamera
local RoomCam = game.Workspace:WaitForChild("RoomCam")
local Process = false
wait(game:IsLoaded())
RoomCam.Transparency = 1
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = RoomCam.CFrame
local BlurEffect = Instance.new("BlurEffect")
BlurEffect.Size = 0
BlurEffect.Parent = game.Lighting
local Black = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Transparency = 0})
local UnBlack = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Transparency = 1})
local Blur = tweenService:Create(BlurEffect ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Size = 20})
local UnBlur = tweenService:Create(BlurEffect ,TweenInfo.new(1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Size = 0})
local roomcam = workspace.RoomCam
local salacam = workspace.SalaCam
local TeleportPart1 = workspace.tp1
local TeleportPart2 = workspace.tp2
TeleportPart1.Touched:Connect(function(hit)
local w = hit.Parent:FindFirstChild("HumanoidRootPart")
if w then
Camera.CFrame = salacam.CFrame
w.CFrame = TeleportPart2.CFrame + Vector3.new(0, 5, 0)
TeleportPart2.CanTouch = false
wait(1)
TeleportPart2.CanTouch = true
-- Update camera CFrame to SalaCam when TeleportPart1 is touche
end
end)
TeleportPart2.Touched:Connect(function(hit)
local w = hit.Parent:FindFirstChild("HumanoidRootPart")
if w then
Camera.CFrame = RoomCam.CFrame
w.CFrame = TeleportPart1.CFrame + Vector3.new(0, 5, 0)
TeleportPart1.CanTouch = false
wait(1)
TeleportPart1.CanTouch = true
end
end)
i don't know if 'anyone' knows but i know a 'someone' who might know, their name is google, did you try searching there before asking here? what search terms did you use?
You don’t help
okay let's wait for someone else who can help 👍
Do you think I didn’t try
??
It's hard for me, I'm just starting out.
yeah i know how hard it can be, i was a beginner too
but i would like to know, why did you write wait(1) instead of task.wait(1)
???
when i was a beginner, there was no ai chatgpt to get free code from, you just can never tell these days 
And why not? And why are you writing to me? You're not helping.
** You are now Level 2! **
i'm writing to you to try to help, but if you think i'm not helping then good luck to you good sir 
I tried it in every way and also tried with the AI, do you realize that you are talking without knowing and that your comments are useless?
Laughing at me is not a way to help
hi sorry you already said my comments are useless why are you pinging me back in here? sorry to repeat myself but good luck to you good sir 
why is there wait(game:IsLoaded())
so that it works when the game is loaded
do you know how those function work
No haha I got it from a tutorial
explain "camera system don't works", whats your goal
I want the character to be seen, when he touches the part apart from teleporting, that he changes the camera as he does, but I don't know why it updates lagging as it appears in the video
is your teleportpart positioned correctly
Yes
there's alot of mistakes in your code taken from a tutorial, I'm not going to solve all the mistakes but I recommend rewatching the tutorial or find another tutorial. Sayonara