Hrithik3000

FREE UNIVERSAL KILL AURA ROBLOX NOO KEYY!!

Dec 7th, 2024
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. -- LocalScript placed in the character (e.g., StarterPlayerScripts)
  2.  
  3. local player = game.Players.LocalPlayer
  4. local character = player.Character or player.CharacterAdded:Wait()
  5.  
  6. local radius = 10 -- The range of the kill aura (in studs)
  7. local damage = 50 -- The amount of damage the aura does
  8.  
  9. -- Create a part to detect other parts within the radius
  10. local auraPart = Instance.new("Part")
  11. auraPart.Size = Vector3.new(radius * 2, 1, radius * 2)
  12. auraPart.Shape = Enum.PartType.Ball
  13. auraPart.Position = character.HumanoidRootPart.Position
  14. auraPart.Anchored = true
  15. auraPart.CanCollide = false
  16. auraPart.Transparency = 1
  17. auraPart.Parent = game.Workspace
  18.  
  19. -- Function to deal damage to characters within the aura
  20. local function dealDamage(part)
  21. local character = part.Parent
  22. if character:IsA("Model") and character:FindFirstChild("Humanoid") then
  23. local humanoid = character:FindFirstChild("Humanoid")
  24. humanoid:TakeDamage(damage)
  25. end
  26. end
  27.  
  28. -- Detect parts entering the aura area
  29. auraPart.Touched:Connect(function(part)
  30. -- Only deal damage to humanoid characters
  31. dealDamage(part)
  32. end)
  33.  
  34. -- Update aura position to follow the player
  35. game:GetService("RunService").Heartbeat:Connect(function()
  36. if character:FindFirstChild("HumanoidRootPart") then
  37. auraPart.Position = character.HumanoidRootPart.Position
  38. end
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment