|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|