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 » Scripters
Home Search
 

Re: Using end

Previous Thread :: Next Thread 
EpicMessi is online. EpicMessi
Joined: 11 Apr 2011
Total Posts: 596
19 Sep 2017 07:58 PM
I always get confused with the end function. Can someone fix this up for me?

alarm = script.Parent.ClickDetector
sound = script.Parent.Parent.Alarm

alarm_On = false

alarm.MouseClick:connect(function()
if alarm_On == true then
script.Parent.Parent.Alarm:Stop()
end
end
elseif alarm_On = false then

sound:Play()
alarm_On = true

end)
end)

Report Abuse
ISeeYourPost is not online. ISeeYourPost
Joined: 10 Jun 2013
Total Posts: 1815
19 Sep 2017 08:00 PM
take away the parenthese on the first end, that's for the end statement while the second is in closing for (function()
Report Abuse
ISeeYourPost is not online. ISeeYourPost
Joined: 10 Jun 2013
Total Posts: 1815
19 Sep 2017 08:01 PM
thats for the if* statement

oof

im way tired
Report Abuse
EpicMessi is online. EpicMessi
Joined: 11 Apr 2011
Total Posts: 596
19 Sep 2017 08:07 PM
fixed it, few errors done. thx
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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