generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: First Person Script Issues

Previous Thread :: Next Thread 
togov is not online. 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 is not online. togov
Joined: 21 Apr 2010
Total Posts: 3740
13 Apr 2014 07:26 PM
bump.
Report Abuse
togov is not online. togov
Joined: 21 Apr 2010
Total Posts: 3740
13 Apr 2014 08:30 PM
bump2.
Report Abuse
CWRA0444 is not online. 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 is not online. togov
Joined: 21 Apr 2010
Total Posts: 3740
13 Apr 2014 08:39 PM
Still doesn't work.
Report Abuse
CWRA0444 is not online. CWRA0444
Joined: 14 Jan 2010
Total Posts: 6013
13 Apr 2014 08:40 PM
Errors?
Report Abuse
togov is not online. togov
Joined: 21 Apr 2010
Total Posts: 3740
13 Apr 2014 08:41 PM
No output errors.
Report Abuse
Bebee2 is not online. 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 is not online. 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 is not online. 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 is not online. togov
Joined: 21 Apr 2010
Total Posts: 3740
13 Apr 2014 09:32 PM
bumptilsolution.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image