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 » Scripters
Home Search
 

Re: Stat raising script, strange output.

Previous Thread :: Next Thread 
crash9000000 is not online. crash9000000
Joined: 12 Sep 2009
Total Posts: 194
20 Apr 2015 02:36 PM
I have a script with the objective of raising the value of an IntValue named "MaxEnergy" When I test it online, the console tells me that CurrentLevel, The value that dictates the increase of MaxEnergy, as well as CurrentLevel's Parent, BU7Stats, don't exist! I don't know what else to try, I've re-written it, I've checked it, But nothing seems to give.


CharLvl = game.Players.LocalPlayer.PlayerGui.BU7Stats.CurrentLevel
Max = script.Parent
IncVal1 = math.random (1,4)
IncVal2 = math.random (1,4)
IncVal3 = IncVal1 + IncVal2
IncVal4 = IncVal3 - IncVal2
IncVal5 = IncVal4 + IncVal1


if CharLvl.Value == 1 then
print (IncVal5)
wait()
Max.Value = Max.Value + (IncVal5) * 4

end


I'll also happily make a model for anyone that'd like to see the entire stat system.

Thanks.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
20 Apr 2015 02:49 PM
Let me see the output.
Report Abuse
GRHolder is not online. GRHolder
Joined: 27 Mar 2015
Total Posts: 6
20 Apr 2015 03:08 PM
Test it using multiple players offline, then manually check to see if it is actually there.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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