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: Problem with team changing script

Previous Thread :: Next Thread 
GunclassSight is not online. GunclassSight
Joined: 20 May 2012
Total Posts: 5575
13 Jan 2013 04:12 PM
[ Content Deleted ]
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
13 Jan 2013 04:16 PM
Game.Players.PlayerAdded:connect(function(player)
  repeat wait() until player.Leaderstats.Wipeouts
  if player.Leaderstats.Wipeouts.Value == 11 then
    player.TeamColor = BrickColor.new("White")
  end
end)
Report Abuse
GunclassSight is not online. GunclassSight
Joined: 20 May 2012
Total Posts: 5575
13 Jan 2013 04:17 PM
[ Content Deleted ]
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
13 Jan 2013 04:19 PM
Ooops, wrong thing:

Game.Players.PlayerAdded:connect(function(player)
  repeat wait() until player.Leaderstats.Wipeouts
  player.Leaderstats.Wipeouts.Changed:connect(function(property)
    if player.Leaderstats.Wipeouts.Value == 11 then
      player.TeamColor = BrickColor.new("White")
    end
  end)
end)
Report Abuse
WIJEtonTraining is not online. WIJEtonTraining
Joined: 23 Jul 2012
Total Posts: 2
13 Jan 2013 04:32 PM
I tested it and it didn't work apparently...
Report Abuse
WIJEtonTraining is not online. WIJEtonTraining
Joined: 23 Jul 2012
Total Posts: 2
13 Jan 2013 04:33 PM
I'm gunclass by the way
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
13 Jan 2013 04:34 PM
player.Leaderstats.Wipeouts

That's probably the only problem you're getting, you need to make sure "Leaderstats" is present and "Wipeouts" is present.
I can't do everything for you.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
13 Jan 2013 05:02 PM
player.leaderstats.Wipeouts

Most of the time, if you did not make your own leaderboard, it is called 'leaderstats' not 'Leaderstats'. If it still doesn't work, tell us what the output is.

[Output can be accessed by clicking View>Output]
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