Here's the script:
local plr = game.Players.LocalPlayer local cam = game.Workspace.CurrentCamera local chr = nil chr = character plr.CameraMode = 1 while false do wait () cam.CameraType = 0 cam.CoordinateFrame = CFrame.new (200,10,0) cam.Focus = CFrame.new (200,7,500) cam.FieldOfView = 20 end
This script is suppose to lock you into first person all the time. When I tested this out on ROBLOX Studio it worked. But when I enter my place normally, it doesn't work for some weird reason. Is this ROBLOX's problem or my problem? If it's my problem, then can you please tell me what am I doing wrong?
For some kind of stupid reason which I still don't understand, those issues can be fixed by putting a wait() on top of your script.
Also, are you running this in a LocalScript? (In Play Solo everything is used as LocalScript so using this as Server script would not mess up anything!)
wait() local plr = game.Players.LocalPlayer local cam = game.Workspace.CurrentCamera local chr = nil chr = character plr.CameraMode = 1 while false do wait () cam.CameraType = 0 cam.CoordinateFrame = CFrame.new (200,10,0) cam.Focus = CFrame.new (200,7,500) cam.FieldOfView = 20 end
Is it a local script?