Advertisement
D_rawest15

Untitled

Oct 18th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. for i,v in pairs(game.Player:GetChildren()) do
  2. if v.Name 'D_rawest15' then
  3. local part = Instance.new("Part")
  4. local weld = Instance.new("Weld")
  5. weld.Part0 = v.Character.HumanoidRootPart
  6. weld.Part1 = part
  7. part.Anchored = false
  8. part.Massless = true
  9. part.Size = Vector3.new(20,20,20)
  10. part.CFrame = v.Character.HumanoidRootPart.CFrame
  11. weld.Parent = game.Workspace
  12. part.Parent = v.Character
  13. part.Touched:Connect(function(hit)
  14. local hum = hit.Parent:FindFirstChild("Humanoid")
  15. if hum then
  16. local dmg = hum.MaxHealth
  17. hum:TakeDamage(dmg)
  18. end
  19. end)
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement