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: Is tere another method to do this script?

Previous Thread :: Next Thread 
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
05 Feb 2014 01:05 PM
I can't seem to get .Changed to work, so is there another method besides while wait() do?

I don't want to lag terribly.

fighter = game.Players.LocalPlayer
wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts.Value
knockouts = game.Player.LocalPlayer.leaderstats.KOs.Value

function Out()
if wipeouts == 15 then
if fighter.TeamColor == BrickColor.new("Bright blue") or fighter.TeamColor == BrickColor.new("Bright red") then
fighter.TeamColor = BrickColor.new("Black")
fighter:LoadCharacter()
wipeouts = 0
knockouts = 0
end
end
end
wipeouts.Changed:connect(Out)
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
05 Feb 2014 01:12 PM
You can't assign a property to a variable
wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts

not wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts.Value

Then just say "if wipeouts.Value == 15 then"
(Same thing for KOs)
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
05 Feb 2014 01:15 PM
@king

wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts.Value

This actually works in a sense lol, because wipeouts then = the CURRENT Value of the Wipeouts NumberValue, but if it changes it won't' update, unless you re-tag it everytime the value changes.
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
06 Feb 2014 11:33 AM
^ Yeah but here he wants to change the values right?
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