SHARE
TWEET

Untitled

TheOverlordsOfROBLOX Sep 21st, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  if string.sub(CMDBAR.Text, 1, 6) == ("bring ") then
  2.             for i,v in pairs(GetPlayer(string.sub(CMDBAR.Text, 7)))do
  3.                 local NOW = lplayer.Character.HumanoidRootPart.CFrame
  4.                 lplayer.Character.Humanoid.Name = 1
  5.                 local l = lplayer.Character["1"]:Clone()
  6.                 l.Parent = lplayer.Character
  7.                 l.Name = "Humanoid"
  8.                 wait(0.1)
  9.                 lplayer.Character["1"]:Destroy()
  10.                 game:GetService("Workspace").CurrentCamera.CameraSubject = lplayer.Character
  11.                 lplayer.Character.Animate.Disabled = true
  12.                 wait(0.1)
  13.                 lplayer.Character.Animate.Disabled = false
  14.                 lplayer.Character.Humanoid.DisplayDistanceType = "None"
  15.                 for i,v in pairs(game:GetService'Players'.LocalPlayer.Backpack:GetChildren())do
  16.                 lplayer.Character.Humanoid:EquipTool(v)
  17.                 end
  18.                 local function tp(player,player2)
  19.                 local char1,char2=player.Character,player2.Character
  20.                 if char1 and char2 then
  21.                 char1.HumanoidRootPart.CFrame = char2.HumanoidRootPart.CFrame
  22.                 end
  23.                 end
  24.                 local function getout(player,player2)
  25.                 local char1,char2=player.Character,player2.Character
  26.                 if char1 and char2 then
  27.                 char1:MoveTo(char2.Head.Position)
  28.                 end
  29.                 end
  30.                 tp(game:GetService("Players")[v.Name], lplayer)
  31.                 wait(0.2)
  32.                 tp(game:GetService("Players")[v.Name], lplayer)
  33.                 wait(0.5)
  34.                 lplayer.Character.HumanoidRootPart.CFrame = NOW
  35.                 wait(0.5)
  36.                 getout(lplayer, game:GetService("Players")[v.Name])
  37.                 wait(0.3)
  38.                 lplayer.Character.HumanoidRootPart.CFrame = NOW
  39.                 game:GetService("StarterGui"):SetCore("SendNotification", {
  40.                 Title = "Tools needed!";
  41.                 Text = "You need a tool in your backpack for this command!";
  42.                 })
  43.             end
  44.         end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top