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
 

WO Limit for TDM help

Previous Thread :: Next Thread 
WoIfz is not online. WoIfz
Joined: 05 Apr 2013
Total Posts: 28
09 Jul 2013 04:01 AM
I'm trying to add a section to the default linkedLeaderboard that changes the player's team when their WOs reach a certain value. I created an intValue and named it wipeLim and added it to Workspace. I changed its Value to 3. Here is what I changed in the leaderboard's script:

lines that have been added = **

function onHumanoidDied(humanoid, player)
.....local stats = player:findFirstChild("leaderstats")
.....local team = player:findFirstChild("TeamColor")**
..........if stats ~= nil then
...............local deaths = stats:findFirstChild("Wipeouts")
...............deaths.Value = deaths.Value + 1
...............-- do short dance to try and find the killer
...............if deaths.Value == game.Workspace.wipeLim.Value then**
....................team = BrickColor.new("Bright blue")**
...............end**
...............local killer = getKillerOfHumanoidIfStillInGame(humanoid)
...............handleKillCount(humanoid, player)
.....end
end

It isnt working as it is right now. Could anyone help me out?
Other than these lines in this function nothing has been changed in the script (i didnt post the whole thing, to save time).
Report Abuse
WoIfz is not online. WoIfz
Joined: 05 Apr 2013
Total Posts: 28
09 Jul 2013 04:07 AM
Halp plz
Report Abuse
WoIfz is not online. WoIfz
Joined: 05 Apr 2013
Total Posts: 28
09 Jul 2013 04:14 AM
bump (if i'm totally wrong just give it to me strait guys) :l
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