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: Reset Stat when Picked

Previous Thread :: Next Thread 
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 01:43 PM
I would like tips on how to make it so that wen ur picked as Beast then ur leaderstat is Reset... u know wat I mean, so that every Round u complete, u get +1 RW and then wen u get to be the Beast, ur RW is Reset so u cant become the Beast again (wont have much chance anymore) cos I have my leaderstat RW set to chance stat, cos if a player played longer than a player, more rounds, then they get better chance of becoming beast then other people with less RW and so for fairness, I wanna make it so that wen the person becomes the Beast, his RW is reset and he then has the lowest RW and the lowest chance of becoming the beast... sry for making this so confusing...
Report Abuse
vvire is not online. vvire
Joined: 14 Feb 2014
Total Posts: 34
09 May 2014 01:45 PM
player = game.Players.LocalPlayer
RW = player.leaderstats.RW.Value
if player.Name == Beast then
RW = 0
end
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 01:48 PM
thnx, so this will work, 100% garuanteed? so it will make RW 0 and then it will leave it alone cos the player stops being the Beast?
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 01:49 PM
also, I dont think u can set a property as a Tag...
Report Abuse
vvire is not online. vvire
Joined: 14 Feb 2014
Total Posts: 34
09 May 2014 01:50 PM
Not sure, how about this:

player = game.Players.LocalPlayer
RW1 = player.leaderstats.RW
if player.Name == Beast then
RW = RW1.Value
RW1.Value = RW
end
Report Abuse
vvire is not online. vvire
Joined: 14 Feb 2014
Total Posts: 34
09 May 2014 01:51 PM
@Andrius, just realised, that's why I changed it, by the way, this is Youssef04, I am not bothered to log out of my alt :3
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 01:53 PM
lol am Kapitanovas, my account was accidentallty Banned for 1 Day XD
Report Abuse
vvire is not online. vvire
Joined: 14 Feb 2014
Total Posts: 34
09 May 2014 02:04 PM
Oh Lol.
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
09 May 2014 02:05 PM
You people and dem alts... :P

Here's my siggy... Done.
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 02:06 PM
btw, u said player.Name
but isnt the name not editable???
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 02:06 PM
spon, lol...
Report Abuse
vvire is not online. vvire
Joined: 14 Feb 2014
Total Posts: 34
09 May 2014 02:07 PM
It gets the name.
It's like in English saying, get the name of the player, if the player's name is the beast then change the RW stats into 0.
Report Abuse
vvire is not online. vvire
Joined: 14 Feb 2014
Total Posts: 34
09 May 2014 02:08 PM
player = game.Players.LocalPlayer
RW1 = player.leaderstats.RW
if player.Name == Beast then
RW = RW1.Value
RW1.Value = RW1.Value - RW
end
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 02:16 PM
but there's no value in the player and the name cant be changed...
Report Abuse
vvire is not online. vvire
Joined: 14 Feb 2014
Total Posts: 34
09 May 2014 02:18 PM
Hold on, is RW a Leadertstat on a LeaderBoard, or is it a Number Value in the player?
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 02:21 PM
both... y? u thought that inserting Values isnt possible except for leaderstat values?
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
09 May 2014 02:39 PM
y u not answering?
Report Abuse
AndriusKapitanovas is not online. AndriusKapitanovas
Joined: 26 Jan 2013
Total Posts: 474
11 May 2014 05:34 AM
BUMP..
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