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

Can someone help with my FPS script problem?

Asked by 10 years ago

See, I make a FPS script (Or any script) And I test it out in solo mode, IT WORKS PERFECTLY! I save the game to my roblox game, and when I try to play the game... I'm not in FPS form like I was in Solo mode, Why is that? Oh, and can someone give me like a 30 second tutorial on how to make animations? Please?

0
What exactly is the problem? TurboFusion 1821 — 10y
0
Is this script in a LocalScript located in StarterPack or StarterGui? M39a9am3R 3210 — 10y
0
Yes, but I have this thing calld InFectiOn and I cn't get rid of it, I think it's screwing with my scripts. 789zaya 0 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

The problem is that when the ROBLOX character dies in Online mode, the CameraMode of the player resets back to Classic instead of staying LockFirstPerson, like you said. There's an easy fix to this, assuming that you are scripting inside of a LocalScript somewhere inside of a GUI or StarterPack.

game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
    game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
end)
Ad

Answer this question