|
| 07 Mar 2014 11:23 PM |
I have a script in a GUI that works perfectly in test mode, but not in play mode. The remote monitoring thing says nothing. Here's the script:
function onClicked() if script.Parent.BackgroundColor3==Color3.new(65/255,160/255,211/255) then script.Parent.BackgroundColor3=Color3.new(150/255,150/255,150/255) a=game.Lighting.CloudWall:clone() a.Parent=game.Workspace a.Head.CFrame=game.Players.LocalPlayer.Character.Torso.CFrame+(game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*5) script.Parent.Parent.Countdown.Visible=true script.Parent.Parent.Countdown.Text="5" wait(1) script.Parent.Parent.Countdown.Text="4" wait(1) script.Parent.Parent.Countdown.Text="3" wait(1) script.Parent.Parent.Countdown.Text="2" wait(1) script.Parent.Parent.Countdown.Text="1" wait(1) script.Parent.Parent.Countdown.Visible=false script.Parent.BackgroundColor3=Color3.new(65/255,160/255,211/255) end end
script.Parent.MouseButton1Click:connect(onClicked)
Please help me. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
| |
|
sekots22
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 219 |
|
|
| 07 Mar 2014 11:27 PM |
script.Parent.Parent.Countdown.Text="5" wait(1) script.Parent.Parent.Countdown.Text="4" wait(1) script.Parent.Parent.Countdown.Text="3" wait(1) script.Parent.Parent.Countdown.Text="2" wait(1) script.Parent.Parent.Countdown.Text="1" wait(1) just use a for loop. :P |
|
|
| Report Abuse |
|
|
sekots22
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 219 |
|
|
| 07 Mar 2014 11:29 PM |
| Sorry I don't have the answer... but might wanna put a loop on that part of the code, so much easier. |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2014 11:32 PM |
| I was too lazy to at the time. I guess I could, though. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|