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: Should this work?

Previous Thread :: Next Thread 
DeHata is not online. DeHata
Joined: 02 Oct 2011
Total Posts: 617
06 Oct 2011 07:04 PM
x = script.Parent.Money

while true do
script.Parent.Text = x.value + (x.Value * .06)
x.Value = x.value + (x.Value * .06)
Wait (10)
end

---
This script should raise the value by six percent every ten seconds, as well as the text. Right? If there are any flaws, please tell me.
Report Abuse
DeHata is not online. DeHata
Joined: 02 Oct 2011
Total Posts: 617
06 Oct 2011 07:05 PM
Wait, nevermind about that.. just this...

x = script.Parent.Money

while true do
script.Parent.Text = x.value
x.Value = x.value + (x.Value * .06)
Wait (10)
end


Or else the text would be WAY ahead..
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
06 Oct 2011 07:08 PM
[ Content Deleted ]
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
06 Oct 2011 07:08 PM
x = script.Parent.Money

x.Changed:connect(function(s)
if s == "Value" then
script.Parent.Text = x.Value
end
end)


while true do
x.Value = x.value + (x.Value * .06)
Wait (10)
end
Report Abuse
DeHata is not online. DeHata
Joined: 02 Oct 2011
Total Posts: 617
06 Oct 2011 07:10 PM
I'm using a number value, the Value is named money, and this is to edit money's value.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
06 Oct 2011 07:10 PM
yeah, when it changes the text is the value
Report Abuse
DeHata is not online. DeHata
Joined: 02 Oct 2011
Total Posts: 617
06 Oct 2011 07:11 PM
it's for a tycoon bank that adds interest.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
06 Oct 2011 07:14 PM
Just try it. if it doesn't work the way u dont want to then post back
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
06 Oct 2011 07:18 PM
x = script.Parent.Money

while true do
script.Parent.Text = x.value
x.Value = x.Value + (x.Value * .06) --<-- You forgot to capitilize the V on Value.
Wait (10)
end
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