|
| 12 Dec 2011 02:30 AM |
Tell if its ok or not:
function onTouched(hit)
repeat Script = script.Parent.Parent.Script Lightning = TimeOfDay.new (01:06:01) wait(2) Lightning = TimeOfDay.new (12:03:06) end script.Parent.Lightning:Connect(onTouched) |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 12 Dec 2011 03:26 AM |
No, it is not.
First of all, you always repeat **until** something. :P repeat --[[ what you are repeating ]] until false --Condition. false would make it loop forever.
Second of all, this absolutely NEEDS a debounce, or else the script will stack and, not only will it make your game laggy, but it will not give the desired effects.
http://wiki.roblox.com/index.php/Debounce |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2011 04:22 AM |
| *Palmface* I am getting tired of fixing scripts by myself. Just, gimme the corrected version because I am not appericiated of what you have posted. |
|
|
| Report Abuse |
|
|
LCPLgeek
|
  |
| Joined: 28 Dec 2009 |
| Total Posts: 2770 |
|
|
| 12 Dec 2011 04:30 AM |
*snickers
No, were not going to fix scripts for you.
Give a man a fish for dinner, and he will be content for a night. Teach a man how to fish, and he will be content for life. |
|
|
| Report Abuse |
|
|
Riderj
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 1534 |
|
|
| 12 Dec 2011 07:16 AM |
| Plus it is "lighting" not "lightning". |
|
|
| Report Abuse |
|
|
Riderj
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 1534 |
|
|
| 12 Dec 2011 07:16 AM |
| Never mind, that was a variable haha. I just woke up, give me slack. |
|
|
| Report Abuse |
|
|
link7002
|
  |
| Joined: 26 May 2009 |
| Total Posts: 545 |
|
|
| 12 Dec 2011 07:49 AM |
| THAT WAS AWESOME! JUst gimme the script. You're funny. While I am a scriptr, and I could edit it, it's the mere fact that us scripters are lazy bums who don't do work, unless it benefits ourselves. ESPECIALLY the ones who think theyre all that. ( like above ) |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2011 12:50 PM |
local IsOn = false function onTouched(hit) local user = hit.Parent:findFirstChild("Humanoid") if user then if IsOn == false then IsOn = true repeat Script = script.Parent.Parent.Script Lightning = TimeOfDay.new (01:06:01) wait(2) Lightning = TimeOfDay.new (12:03:06) end end until false IsOn = false script.Parent.Lightning:Connect(onTouched)
~Never ignore a coincidence. Unless you're busy, in which case always ignore a coincidence~ |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2011 12:56 PM |
@LCPLgeek
Give a man a match, and he's warm for a minute. Light a man on fire, and he's warm for life.
"I WILL GIVE YOU BACON." - Deadmau5 ~Scarfacial |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2011 01:07 PM |
| lol, scar. I have to remember that... |
|
|
| Report Abuse |
|
|
| |
|
LCPLgeek
|
  |
| Joined: 28 Dec 2009 |
| Total Posts: 2770 |
|
|
| 12 Dec 2011 03:06 PM |
@scar, They'd be warm for about 30 seconds, but by then, they'd throw themselves into a lake or a snow bank. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2011 12:39 AM |
@Tra
You just answered my question! |
|
|
| Report Abuse |
|
|