togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
|
| 13 Apr 2014 07:13 PM |
I'm having issues with my fps script. All the paths are correct btw. (I've tried IsA method already)
FPS = Game.Workspace.FPS
FPS.Changed:connect(function() if FPS.Value == true then if Game.Players:FindFirstChild(script.Parent.Name) then script.Parent.CameraMode = "LockFirstPerson" print ("Fps activated") end end end) |
|
|
| Report Abuse |
|
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 13 Apr 2014 08:34 PM |
I believe this will work:
FPS = game.Workspace.FPS Player = game.Players:findFirstChild(script.Parent.Name)
FPS.Changed:connect(function()
if FPS.Value == true then if Player ~= nil then Player.CameraMode = "LockFirstPerson" -- You said 'script.Parent' - which I assume is the Players Character. print ("Fps activated") end end end)
|
|
|
| Report Abuse |
|
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
| |
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 13 Apr 2014 08:41 PM |
| You have to set it after the player loads. |
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 13 Apr 2014 08:43 PM |
| Ah! Yes. Make a wait(2) before everything. |
|
|
| Report Abuse |
|
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
|
| 13 Apr 2014 08:43 PM |
| Bee I thought of that too but when i disabled then inserted it on build mode and re- enabled it it still didn't work. |
|
|
| Report Abuse |
|
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|