door = script.parent msg = string.lower(msg) if (msg == "open") then door.Transparency = 1 door.CanCollide = false wait(4) door.Transparency = 0 door.CanCollide = true end
I'm trying to make this script open a door, then close it, but so far- No luck. Any input would be helpful, thank you!
door = script.Parent game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == "open door" then door.Transparency = 1 door.CanCollide = false elseif msg == "close door" then door.Transparency = 0 door.CanCollide = true end end) end)