of     1   

Spxders
#185900925Wednesday, March 23, 2016 4:23 PM GMT

function door() -- What the function is game.Workspace.Part.Transparency = 0.75 game.Workspace.Part.CanCollide = false game.Workspace.nob.Transparency = 0.75 game.Workspace.nob.CanCollide = false wait(2) game.Workspace.Part.Transparency = 0 game.Workspace.Part.CanCollide = true game.Workspace.nob.Transparency = 0 game.Workspace.nob.CanCollide = true end game.Workspace.Part.ClickDetector.MouseClick:connect(door) if game.Workspace.Part.Transparency == 0.75 then game.Workspace.light.Anchored = false end
Antheer
#185900996Wednesday, March 23, 2016 4:25 PM GMT

try local function
Spxders
#185901488Wednesday, March 23, 2016 4:39 PM GMT

they both work just the "if" statement doesnt
RoflBread
#185903429Wednesday, March 23, 2016 5:25 PM GMT

It does, but it only runs once.
TacticalKiller91
#185905196Wednesday, March 23, 2016 6:14 PM GMT

game.Workspace.light??????
Spxders
#185910375Wednesday, March 23, 2016 8:14 PM GMT

yes. when the dorr is clicked it is opened and the light drops (I want the light to become green but im testing it with eaier command

    of     1