Advertisement
dubleeyrblxx

Load Map custom command -- Roblox

Jan 20th, 2023
997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(plr)
  2.     if plr.Name == "Admin1" or "Admin2" then -- in the ""s put admin names
  3.         plr.Chatted:Connect(function(msg)
  4.             if msg == "LoadMap" then -- in the ""s put the command
  5.                 local obby = game.ServerStorage.Obby1 -- change Obby1 with the map in server storage
  6.                 if obby.Parent == game.ServerStorage then
  7.                     print("Obbyload Success!")
  8.                     obby.Parent = game.Workspace
  9.                 elseif obby.Parent == game.workspace then
  10.                     print("Obby already Loaded!")
  11.                 end
  12.             end
  13.         end)
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement