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: More Efficient Way?

Previous Thread :: Next Thread 
KorniakRBLX is not online. KorniakRBLX
Joined: 09 Aug 2013
Total Posts: 858
03 May 2015 08:22 AM
while true do
wait(0.01)
script.Parent.Text = script.Parent.Parent.OxygenVal.Value
end

I was thinking that was a little dated, but I don't know another way of doing this.
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
03 May 2015 08:23 AM
script.Parent.Parent.OxygenVal.Changed:connect(function()
script.Parent.Text = script.Parent.Parent.OxygenVal.Value
end
Report Abuse
KorniakRBLX is not online. KorniakRBLX
Joined: 09 Aug 2013
Total Posts: 858
03 May 2015 08:25 AM
kthx
Report Abuse
crazymuffin267 is not online. crazymuffin267
Joined: 01 Aug 2012
Total Posts: 253
03 May 2015 08:26 AM
Nvm, I was going to add for i loop but since it's just like 'while true do loop'
I won't post it
Report Abuse
KorniakRBLX is not online. KorniakRBLX
Joined: 09 Aug 2013
Total Posts: 858
03 May 2015 08:30 AM
The new script works, BUT I have a problem.

script.Parent.Parent.PowerVal.Changed:connect(function()
script.Parent.Text = script.Parent.Parent.PowerVal.Value
end)

It works once it is changed, but when I load up, it doesn't change the amount.
Report Abuse
hdtv13 is not online. hdtv13
Joined: 18 Sep 2012
Total Posts: 1628
03 May 2015 08:37 AM
Because it has not changed.

I have skin, potatoes have skin, therefore I'm a potato.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
03 May 2015 09:06 AM
local function onChanged()
script.Parent.Text = script.Parent.Parent.PowerVal.Value
end

script.Parent.Parent.PowerVal.Changed:connect(onChanged)
onChanged(script.Parent.Parent.PowerVal.Value)
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