Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local admins = {"YourUsername"}
- game.Players.PlayerAdded:connect(function(nP)
- for _,v in pairs (admins) do
- if nP.Name == v then
- nP.Chatted:connect(function(msg)
- if (msg:lower() == "youropencommand") then
- script.Parent.Transparency = 0.4
- script.Parent.CanCollide = false
- elseif (msg:lower() == "yourclosecommand') then
- script.Parent.Transparency = 0.2
- script.Parent.CanCollide = true
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement