Advertisement
robloxscript111

Pilgrammed

Feb 12th, 2023
2,579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. getgenv().oneshot = true
  2.  
  3. while oneshot do task.wait()
  4. pcall( function()
  5. for i,v in pairs(game:GetService("Workspace").Mobs:GetDescendants()) do
  6. if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and game.Players.LocalPlayer:DistanceFromCharacter(v.PrimaryPart.Position) < 21 and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  7. local MobHealth = v:FindFirstChildOfClass("Humanoid").Health
  8. local Result = 20 * v:FindFirstChildOfClass("Humanoid").MaxHealth / 100
  9. local OneTapWhen = v:FindFirstChildOfClass("Humanoid").MaxHealth - Result
  10.  
  11. if isnetworkowner(v.PrimaryPart) then
  12. v.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 6 + Vector3.new(0, 2, 0)
  13. end
  14.  
  15. if MobHealth < OneTapWhen and isnetworkowner(v.PrimaryPart) then
  16. v.Head:Destroy()
  17. v.Humanoid.Health = 0
  18. end
  19.  
  20. end
  21. end
  22. end)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement