Elvisfofo_rblx

Slam Ground Script

Jun 22nd, 2025 (edited)
4,297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local Players = game:GetService("Players")
  3. local player = Players.LocalPlayer
  4. local debounce = false
  5.  
  6. function doSlam()
  7. if debounce or not player.Character then return end
  8. debounce = true
  9.  
  10. local char = player.Character
  11. local root = char:FindFirstChild("HumanoidRootPart")
  12.  
  13. -- Slam visual
  14. local slam = Instance.new("Part", workspace)
  15. slam.Shape = Enum.PartType.Ball
  16. slam.Size = Vector3.new(10, 1, 10)
  17. slam.Anchored = true
  18. slam.Position = root.Position - Vector3.new(0, 3, 0)
  19. slam.BrickColor = BrickColor.new("Really red")
  20. slam.Material = Enum.Material.Neon
  21. game.Debris:AddItem(slam, 0.3)
  22.  
  23. -- Slam damage
  24. for _, v in pairs(workspace:GetDescendants()) do
  25. if v:IsA("Humanoid") and v ~= char:FindFirstChildOfClass("Humanoid") then
  26. local r = v.Parent:FindFirstChild("HumanoidRootPart")
  27. if r and (r.Position - root.Position).Magnitude < 10 then
  28. v:TakeDamage(40)
  29. end
  30. end
  31. end
  32.  
  33. wait(0.5)
  34. debounce = false
  35. end
  36.  
  37. UIS.InputBegan:Connect(function(input, g)
  38. if g then return end
  39. if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  40. doSlam()
  41. end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment