mewishmeww

npc thrasha

Jan 25th, 2025 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. local radius = 20
  2. local waits = 0.2
  3. local kills = {}
  4.  
  5. local rotspeed = Vector3.new(44,30,50)
  6.  
  7. while task.wait(waits) do
  8.  
  9. for i, v in pairs(game.Workspace:GetDescendants()) do
  10.     if v:IsA("Model") and v:FindFirstChildWhichIsA("Humanoid") and (v:GetPivot().Position-game.Players.LocalPlayer.Character:GetPivot().Position).Magnitude<radius and not game.Players:GetPlayerFromCharacter(v) and not table.find(kills,v:FindFirstChildWhichIsA("Humanoid")) then
  11.        
  12.             local hum = v:FindFirstChildWhichIsA("Humanoid")
  13.             hum.PlatformStand = true
  14.             hum.Health -= 50
  15.             hum.RootPart:ApplyImpulse((hum.RootPart.Position-game.Players.LocalPlayer.Character:GetPivot().Position).Unit*999)
  16.     end
  17. end
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment