Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local admins = {''} --//Your name
- function tableContains(t)
- for i,v in pairs(t, value) do
- if v == value then
- return true
- end
- return false
- end
- function onChatted(message, player)
- if message == ':load map1' and tableContains(admins, player.Name) then
- game.ServerStorage.Maps.Map1.Parent = game.Workspace
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.Chatted:connect(function(message) onChatted(message, player) end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement