Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if string.sub(CMDBAR.Text, 1, 6) == ("bring ") then
- for i,v in pairs(GetPlayer(string.sub(CMDBAR.Text, 7)))do
- local NOW = lplayer.Character.HumanoidRootPart.CFrame
- lplayer.Character.Humanoid.Name = 1
- local l = lplayer.Character["1"]:Clone()
- l.Parent = lplayer.Character
- l.Name = "Humanoid"
- wait(0.1)
- lplayer.Character["1"]:Destroy()
- game:GetService("Workspace").CurrentCamera.CameraSubject = lplayer.Character
- lplayer.Character.Animate.Disabled = true
- wait(0.1)
- lplayer.Character.Animate.Disabled = false
- lplayer.Character.Humanoid.DisplayDistanceType = "None"
- for i,v in pairs(game:GetService'Players'.LocalPlayer.Backpack:GetChildren())do
- lplayer.Character.Humanoid:EquipTool(v)
- end
- local function tp(player,player2)
- local char1,char2=player.Character,player2.Character
- if char1 and char2 then
- char1.HumanoidRootPart.CFrame = char2.HumanoidRootPart.CFrame
- end
- end
- local function getout(player,player2)
- local char1,char2=player.Character,player2.Character
- if char1 and char2 then
- char1:MoveTo(char2.Head.Position)
- end
- end
- tp(game:GetService("Players")[v.Name], lplayer)
- wait(0.2)
- tp(game:GetService("Players")[v.Name], lplayer)
- wait(0.5)
- lplayer.Character.HumanoidRootPart.CFrame = NOW
- wait(0.5)
- getout(lplayer, game:GetService("Players")[v.Name])
- wait(0.3)
- lplayer.Character.HumanoidRootPart.CFrame = NOW
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Tools needed!";
- Text = "You need a tool in your backpack for this command!";
- })
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement