4zx16

Respawn Command

Oct 13th, 2021 (edited)
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local Command = {":re", "!re"}
  2.  
  3. game.Players.PlayerAdded:Connect(function(player)
  4.     player.CharacterAdded:Connect(function(chr)
  5.         player.Chatted:Connect(function(msg)
  6.        
  7.             for i, v in pairs(Command) do
  8.                 if msg:sub(1, v:len()):lower() == v:lower() then
  9.                     player:LoadCharacter(true)
  10.                     wait(0.9)
  11.                     chr.HumanoidRootPart.CFrame = chr.HumanoidRootPart.CFrame
  12.                 end
  13.             end
  14.         end)
  15.     end)
  16. end)
  17.  
  18.  
  19.  
  20. local Command = {":re", "!re"}
  21.  
  22. game.Players.PlayerAdded:Connect(function(player)
  23.     player.Chatted:Connect(function(msg)
  24.  
  25.         for i, v in pairs(Command) do
  26.             if msg:sub(1, v:len()):lower() == v:lower() then
  27.                 player:LoadCharacter(true)
  28.             end
  29.         end
  30.     end)
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment