Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Wait for your character to respawn
- -- Note that it rarely doesn't glitch your character (which is a good thing) and read thread before using this
- local targetname = ""
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local ran1 = false
- local ran2 = false
- local equipped = false
- local savepos = LocalPlayer.Character.HumanoidRootPart.CFrame
- local target = game:GetService("Players")[targetname]
- if #LocalPlayer.Backpack:GetChildren() < 2 then
- repeat
- for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer
- end
- end
- LocalPlayer.Character:ClearAllChildren()
- local char = Instance.new("Model", workspace)
- char.Name = "character"
- Instance.new("Part", char).Name = "Torso";
- Instance.new("Part", char).Name = "Head";
- Instance.new("Humanoid", char).Name = "Humanoid";
- LocalPlayer.Character = char
- repeat wait() until LocalPlayer.Character
- until #LocalPlayer:GetChildren() - 4 >= 2
- for _, char in pairs(workspace:GetChildren()) do
- if char.Name == "character" and char:IsA("Model") then
- char:Destroy()
- end
- end
- repeat wait() until LocalPlayer.Character.HumanoidRootPart ~= nil
- for _, tool in pairs(LocalPlayer:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer.Backpack
- end
- end
- end
- LocalPlayer.Character.HumanoidRootPart.CFrame = savepos
- LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Parent = LocalPlayer.Character
- LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Parent = LocalPlayer.Character
- local tool = LocalPlayer.Character:FindFirstChildOfClass("Tool")
- tool.Parent = workspace
- local attacher = LocalPlayer.Character:FindFirstChildOfClass("Tool")
- attacher.Parent = workspace
- LocalPlayer.Character.Humanoid:EquipTool(tool)
- repeat wait() until LocalPlayer.Character:FindFirstChildOfClass("Tool") ~= nil
- LocalPlayer.Character.Humanoid:UnequipTools()
- attacher.AncestryChanged:connect(function()
- if ran1 == false then
- ran1 = true
- equipped = true
- end
- end)
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://188632011"
- local loadanim = LocalPlayer.Character.Humanoid:LoadAnimation(anim)
- loadanim.Looped = true
- loadanim:Play()
- LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(math.random(-1000, 1000), math.random(0, 1000), math.random(-1000, 1000)))
- local stabilize = Instance.new("Part", workspace)
- stabilize.Size = Vector3.new(50, 1, 50)
- stabilize.Anchored = true
- stabilize.CFrame = CFrame.new(LocalPlayer.Character.HumanoidRootPart.CFrame * Vector3.new(0, -3.5, 0))
- repeat
- target.Character.HumanoidRootPart.CFrame = CFrame.new(LocalPlayer.Character.HumanoidRootPart.Position + LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 2 + LocalPlayer.Character.HumanoidRootPart.CFrame.rightVector * 2)
- wait()
- until equipped == true
- stabilize:Destroy()
- loadanim:Stop()
- anim:Destroy()
- LocalPlayer.CharacterAdded:connect(function(character)
- if ran2 == false then
- ran2 = true
- character:WaitForChild("HumanoidRootPart")
- character.HumanoidRootPart.CFrame = savepos
- end
- end)
- tool.GripPos = Vector3.new(0, -math.huge, 0)
- LocalPlayer.Character.Humanoid:EquipTool(tool)
- repeat
- LocalPlayer.Character.Humanoid.Jump = true
- wait()
- until ran2 == true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement