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: Plugin only runs once, please help

Previous Thread :: Next Thread 
ColorfulBrendon is not online. ColorfulBrendon
Joined: 28 Jul 2010
Total Posts: 23556
09 Jul 2014 04:53 PM
I've created a plugin that clears out a user's Workspace.
I got a message from a user that said it was only running once.

I assume that there's many situations like this, how do I make it so a button can run multiple times?
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
09 Jul 2014 04:56 PM
._.
Report Abuse
ColorfulBrendon is not online. ColorfulBrendon
Joined: 28 Jul 2010
Total Posts: 23556
09 Jul 2014 05:01 PM
@Smiley, there's countless times when a button of any type, even a plugin, might not run more than one time.

I assumed that since this is such a general thing, I could get feedback without having to supply my entire code.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
09 Jul 2014 05:07 PM
Maybe the code breaks/errors so the event disconnects?
Report Abuse
ColorfulBrendon is not online. ColorfulBrendon
Joined: 28 Jul 2010
Total Posts: 23556
09 Jul 2014 05:09 PM
Well, there's not any errors in the code that Output can pick up.

This is the same problem I had with a GUI button before.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
09 Jul 2014 05:20 PM
Weird. Post the code?
Report Abuse
fajner1 is not online. fajner1
Joined: 30 Mar 2008
Total Posts: 77
09 Jul 2014 05:21 PM
Place the event:connect() before any loops.
Report Abuse
ColorfulBrendon is not online. ColorfulBrendon
Joined: 28 Jul 2010
Total Posts: 23556
09 Jul 2014 05:24 PM
Instead of posting 100% of the script, I'll just post the function. It's very simplistic, but it was more of an experimental plugin to see how it works.

Button.Click:connect(function()
game.Workspace:ClearAllChildren()
end)
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