noahrobs
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 26 |
|
|
| 31 Dec 2016 05:47 AM |
function Value1() print("Value1")
function Value2() print("Value2)
repeat until wait() if script.Parent.GUIValue.Value == 1 then Value1() end if script.Parent.GUIValue.Value == 2 then Value2() end wait(1) I access Value 1 and 2 it works fine although when I try going back through Value 1 and 2 it breaks Ex: 1 - [Working] [] 2 - [Working] [] 1 - [Breaks]
|
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 31 Dec 2016 05:56 AM |
function Value1() print("Value1") end function Value2() print("Value2) end
while true do if script.Parent.GUIValue.Value == 1 then Value1() end if script.Parent.GUIValue.Value == 2 then Value2() end wait(1) end
what u were trying to do? |
|
|
| Report Abuse |
|
|
noahrobs
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 26 |
|
|
| 31 Dec 2016 06:21 AM |
But this is what I want I use value 1 and then I use value 2 but when I try using value 1 again it breaks: but when I used what you done above it gets stuck in value 2 / a loop
|
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 31 Dec 2016 06:24 AM |
| because the values still value two just make it a .changed |
|
|
| Report Abuse |
|
|