Advertisement
Guest User

For Roblox (Straight from wiki) (I think lmao)

a guest
Feb 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. local admins = {''} --//Your name
  2.  
  3. function tableContains(t)
  4.     for i,v in pairs(t, value) do
  5.         if v == value then
  6.             return true
  7.         end
  8.     return false
  9. end
  10.  
  11. function onChatted(message, player)
  12.     if message == ':load map1' and tableContains(admins, player.Name) then
  13.         game.ServerStorage.Maps.Map1.Parent = game.Workspace
  14.     end
  15. end
  16.  
  17. game.Players.PlayerAdded:connect(function(player)
  18.     player.Chatted:connect(function(message) onChatted(message, player) end)
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement