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