Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you change the camera subject when the user touches a block?

Asked by 4 years ago

Hey, so currently I'm a beginner scripter with little experience, currently trying to figure out how to use camera manipulation. I'm trying to figure out how to change the camera subject when a player touches a block. Here is my script thus far:

script.Parent.Touched:connect(function()
    local cam = game.Workspace.CameraPart1
    cam.CameraSubject = game.Workspace.CameraPart2
    cam.CFrame = workspace.CameraPart2.CFrame
end)

CameraPart1 is the current camera subject and CameraPart2 is the new camera subject when the player touches the block.

0
You can't change player's camera in normal script. You need to do this in Local script and send informations in Remote event kujekmarek 24 — 4y

Answer this question