Is there anything wrong with this script? It's a script for a FPS but it won't allow the camera to move, it makes it stuck in a particular position.
001 | wait(. 5 ) |
002 | _G.RecoilY = 0 |
003 | _G.RecoilX = 0 |
004 | _G.MouseSensitivity = 1 |
005 | _G.PrimarySensitivity = 1 |
006 | _G.SecondarySensitivity = 1 |
007 | _G.TertiarySensitivity = 1 |
008 |
009 | _G.Target = nil |
010 | _G.Zoomed = false |
011 | --game.StarterGui:SetCoreGuiEnabled("Health", false) |
012 | local RunService = game:GetService( "RunService" ) |
013 | local RenderStepped = RunService.RenderStepped |
014 | local UserInputService = game:GetService( "UserInputService" ) |
015 | UserInputService.MouseBehavior = Enum.MouseBehavior.Default |
This should be a solution, can't really figure out what the script you provided is trying to achieve.
1 | local Players = game.Players.LocalPlayer |
2 |
3 | Players.CameraMode = "LockFirstPerson" |
Make sure this goes into a local script, preferably in game.StarterPlayer.StarterPlayerScripts
Hoped this helped.
-- The only one, Astrallife.