Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.toggle = true -- change this to false to stop
- local plr = game.Players.LocalPlayer
- if not plr.Character:FindFirstChildOfClass("Tool") then
- local tool = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool")
- tool.Parent = plr.Character
- end
- while _G.toggle == true do
- wait(0.1)
- for i, v in next, workspace.NPCs:GetDescendants() do
- if v:FindFirstChild("Humanoid") then
- while _G.toggle == true and v.Humanoid.Health > 0 do
- game:GetService("RunService").RenderStepped:Wait()
- plr.Character.Humanoid:ChangeState(11)
- game:getService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.PrimaryPart.CFrame*CFrame.new(0,6,0)
- plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(-90),0,0)
- local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
- tool:Activate()
- end
- end
- end
- end
- game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
- wait(.1)
- pcall(function()
- local tool = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool")
- tool.Parent = char
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement