mityguy
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 5483 |
|
|
| 18 Nov 2015 02:05 PM |
| Is there a way to make a script run from the top? I was hoping disabling and enabling would do that for me... I didn't get so lucky... |
|
|
| Report Abuse |
|
|
mityguy
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 5483 |
|
|
| 18 Nov 2015 02:15 PM |
| Negate this question. I've decided to delete then clone. |
|
|
| Report Abuse |
|
|
WVPII
|
  |
| Joined: 19 Aug 2015 |
| Total Posts: 207 |
|
| |
|
|
| 18 Nov 2015 02:36 PM |
| Go back to Scripting Help Moron |
|
|
| Report Abuse |
|
|
Zaxerion
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 2304 |
|
|
| 18 Nov 2015 02:40 PM |
No, no no. Put all your code where I say --code here and replace respawnTime with how often it refreshs.
local respawnTime = (5 * 60) -- 5 * 60 = 5 minutes, because it is in seconds.
local Code = function() --code here end
Code()
while wait(respawnTime) do Code() end |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2015 03:57 PM |
| It is truly pointless to put your code in a function when you can just put it in the loop. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2015 03:58 PM |
also 5 * 60 ~= 60 * 5
It is supposed to be 60*5. I'd expect this from you though. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 Nov 2015 03:59 PM |
'5 * 60 ~= 60 * 5' Are you an idiot? |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
|
| 18 Nov 2015 04:16 PM |
| Destroying and recloning helps. |
|
|
| Report Abuse |
|
|
Zaxerion
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 2304 |
|
|
| 18 Nov 2015 04:31 PM |
| Um, fish, I hate to dog on you, but, GO BACK TO KINDERGARTEN AND LEARN MULTIPLICATION. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2015 04:32 PM |
| @AnimatedUglyPet Last time I checked you were a moron. |
|
|
| Report Abuse |
|
|
Zaxerion
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 2304 |
|
|
| 18 Nov 2015 04:34 PM |
@Fishguy100
It is not pointless, it looks better to the eyes. Maybe because you don't appreciate good code aesthetics that doesn't mean we don't. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2015 06:23 PM |
Actually, to my eyes it looks like something that could have been shorten. And that is not pleasing to my eye...
|
|
|
| Report Abuse |
|
|
|
| 18 Nov 2015 06:25 PM |
| script:Clone().Parent=script.Parent;script:Destroy() |
|
|
| Report Abuse |
|
|