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 » Scripting Helpers
Home Search
 

Re: Script Not Working in Game

Previous Thread :: Next Thread 
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
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 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
07 Mar 2014 11:24 PM
Yes.
Report Abuse
sekots22 is not online. 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 is not online. 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
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
07 Mar 2014 11:32 PM
I was too lazy to at the time. I guess I could, though.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
08 Mar 2014 12:11 AM
BUMP
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
08 Mar 2014 09:00 AM
BUMP
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
08 Mar 2014 10:34 AM
BUMP
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
08 Mar 2014 11:26 AM
BUMP
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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