This is my starter script:
game.Players.PlayerAdded:connect(function(plr) plr.CameraMode = "LockFirstPerson" end) game.StarterGui:SetCoreGuiEnabled("Backpack", false)
Basically it's meant to force player to FP and get rid of the backpack. In solo mode on studio It works fine but doesn't work in game. Anything I'm doing wrong?
Use this
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) plr.CameraMode = "LockFirstPerson" end) end)
basically it'll only set the camera mode when the character is added to the game, because the camera is focussed on the humanoid, if you set it before the character is added it won't do anything.
Scripts are really sensitive when it comes to correct grammar and spelling. Try using the proper capitalises.
Game.Players.PlayerAdded:connect(function(plr)
Plr.CameraMode = "LockFirstPerson"
end)
Game.StarterGui:SetCoreGuiEnabled("Backpack", false)