I want to make this code down here, only work for the localplayer's camera.
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local Part3 = game.Workspace.Part3
game.Workspace.Part3.Touched:connect(function()
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraParts3.CFrame
wait(2)
Camera.CFrame = workspace.CameraPart2s3.CFrame
wait(3)
Camera.CFrame = workspace.CameraPart3s3.CFrame
wait(2)
Camera.CFrame = workspace.CameraPart4s3.CFrame
end)
**right now it changes the camera of everyone in the game to those parts. i wanna make it so it only becomes the camera of the CLIENT when the CLIENT touches the part. **
FYI THIS IS A LOCALSCRIPT IN STARTERPACK

2 comments
Is this a localscript and where is it located?
i edited it