So I have this script and it is supposed to off set the camera "in other words to shake the screen". Here is the error message:
Players.Player2.PlayerGui.LocalScript:2: attempt to index field 'Character' (a nil value)
Here is the script:
***for i = math.huge, math.huge do
game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
wait()
end
game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)***
I'm in need of help! :D

3 comments
Oh by the way, the *'s are not in the script.
You probably need to wait for the character to load, as that's most common problem. :/ (Script loads before the character loads.)
My suggestion, try game.Players.LocalPlayer.CharacterAdded:Wait() If you set any variables to equal this, it will be set to the Character model once the event has executed.