Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make this script work in "online" mode?

The code works perfectly in Solo/testing, but it doesn't work in online/play mode. Can anyone help me rewrite this? (It locks first person)

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 = 1
cam.CoordinateFrame = CFrame.new (200,10,0)
cam.Focus = CFrame.new (200,7,500)
cam.FieldOfView = 70
end

2 answers

Change to a local script. :P

or

game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson -- This automatically locks in first person

You can put this as a local script and put in your StarterGear Making the person in First person instead of typing all of that. You can do the above if you want. Hope this helps :P

SourceMain

This discussion is preserved as it was. New answers, comments, and votes are closed.