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

Why does this script make my character not move and only jump?

Asked by 5 years ago

I'm trying to make a script that makes the camera display from a part, The script works fine with no errors but if it executes it makes my character not move and only jump.

Script (Local script, Inside StarterGui/PlayerGui):

local Plr = game.Players.LocalPlayer
local Cam = workspace.CurrentCamera

repeat wait()
    Cam.CameraType = Enum.CameraType.Scriptable
until Cam.CameraType == Enum.CameraType.Scriptable

Cam.CFrame = workspace.CameraPart.CFrame

I would really appreciate it if you help me with my problem, Plus I'll accept your answer and we both make reputation out of that.

Thanks, MajinBluee (This is my alt xD)

Answer this question