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

Can someone help with my FPS script problem?

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?

3 comments

0

What exactly is the problem?

0

Is this script in a LocalScript located in StarterPack or StarterGui?

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.

1 answer

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)

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