2DWorlds Forums
VERY annoying scripting bug - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Bug Reports (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=23)
+--- Thread: VERY annoying scripting bug (/showthread.php?tid=7458)



VERY annoying scripting bug - Duck - 08-04-2011

This might be a problem in the actual script, but I think it's a bug

d = script.Parent
delay =5

function Doorinate()
sleep(0.1)
d.Transparency = 0.5
d.CharacterCollide = false
lastCalled = os.time()
if os.time() - lastCalled < delay then return end
d.CharacterCollide = true
d.Transparency = 0
lastCalled = os.time()
end


link(d.Collided, Doorinate)



This video was taken after something had collided with the object, every time I tried to edit the two values they reset themselves