|
| 19 Nov 2014 05:28 PM |
Removed most of the irrelevant stuff
co = coroutine.create(function() while wait() do for _, v in pairs(game.Players:GetPlayers()) do local vchar = v.Character local mag = (vchar.Torso.Position - trigger.Position).magnitude if mag < 7 and sp.Door.Rotation.Y == 0 and db then db = false print("Open!") opendoor() wait(2) closedoor() db = true print(db) end end end end)
this IS being called, when I get in range, it opens, waits two seconds and closes. But when I try and do it again, nothing happens. and 'Open!' doesn't print. And when I print db, it prints as true.
Hibachi Man makes his daring escape, The Barbecue Belly Slide! |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2014 05:41 PM |
b1
Hibachi Man makes his daring escape, The Barbecue Belly Slide! |
|
|
| Report Abuse |
|
|
|
| 20 Nov 2014 03:53 AM |
b2
Hibachi Man makes his daring escape, The Barbecue Belly Slide! |
|
|
| Report Abuse |
|
|
|
| 20 Nov 2014 03:54 AM |
and yes, the rotation y is 0
Hibachi Man makes his daring escape, The Barbecue Belly Slide! |
|
|
| Report Abuse |
|
|
|
| 20 Nov 2014 05:52 AM |
b3
Hibachi Man makes his daring escape, The Barbecue Belly Slide! |
|
|
| Report Abuse |
|
|
|
| 20 Nov 2014 06:12 AM |
Apparently this is the hardest thing in the world to fix.
Hibachi Man makes his daring escape, The Barbecue Belly Slide! |
|
|
| Report Abuse |
|
|