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

FPS camera is stuck in a specific position?

Asked by 8 years ago

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.

001wait(.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)
012local RunService = game:GetService("RunService")
013local RenderStepped = RunService.RenderStepped
014local UserInputService = game:GetService("UserInputService")
015UserInputService.MouseBehavior = Enum.MouseBehavior.Default
View all 102 lines...
0
I think I´m kind of failing to understand exactly what you want this script to accomplish. When I read the title I thought FPS camera but that wouldnt need.. any of this. That would simply just be game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson harryisbeast 70 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

This should be a solution, can't really figure out what the script you provided is trying to achieve.

1local Players = game.Players.LocalPlayer
2 
3Players.CameraMode = "LockFirstPerson"

Make sure this goes into a local script, preferably in game.StarterPlayer.StarterPlayerScripts

Hoped this helped.

-- The only one, Astrallife.

0
Also, the script looks like it should belong in the gun (Or tool), as a local script. LevelHeadedLogic 13 — 8y
Ad

Answer this question