Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local door = script.Parent
- door.Anchored = true
- function open()
- door.Transparency = 1
- door.CanCollide = false
- end
- function close()
- door.Transparency = 0
- door.CanCollide = true
- end
- game.Players.PlayerAdded:Connect(function(p)
- p.Chatted:Connect (function(msg)
- if message == "open door" then
- open()
- end
- if message == "close door" then
- close()
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement