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: Simple script not working

Previous Thread :: Next Thread 
1Riblock1 is not online. 1Riblock1
Joined: 02 May 2011
Total Posts: 4771
13 Oct 2014 05:52 PM
function OnPlayerAdded(player)
player.NameDisplayDistance = 0
player.HealthDisplayDistance = 0
player.CameraMode = "LockFirstPerson"
end

Just sets some things for players, it seems to be wholly nonfunctional
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
13 Oct 2014 05:58 PM
I've always had to use the cameramodes enum for camera mode, and also you may want to try setting the camera mode in a script too.
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
13 Oct 2014 06:03 PM
in players?

players
game.Players.PlayerAdded:connect(function(player)
player.NameDisplayDistance = 0
player.HealthDisplayDistance = 0
player.CameraMode = "LockFirstPerson"
end)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
13 Oct 2014 06:05 PM
Ugh I'm so tired yep that probably works replace "lockfirstperson" with 1
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
13 Oct 2014 06:18 PM
my script works
just have it in Workspace in a normal script should do the trick if not comment :O
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