08-13-2011, 01:55 AM
[lua]--i <3 already knowing RBX.lua, i made this in a few seconds, and this is my first script
local deb = false
link(game.World.Button1.Collided, function(nope)
if nope.Name == "Body" and deb == false then
deb = true
game.World.Button1.Color = Color(0,255,0) --green
sleep(1)
dep = false
game.World.Button1.Color = Color(255,0,0) --red
end
end)[/lua]
local deb = false
link(game.World.Button1.Collided, function(nope)
if nope.Name == "Body" and deb == false then
deb = true
game.World.Button1.Color = Color(0,255,0) --green
sleep(1)
dep = false
game.World.Button1.Color = Color(255,0,0) --red
end
end)[/lua]