Elvisfofo_rblx

Fire Punch Script

Jun 22nd, 2025 (edited)
5,184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. local Players = game:GetService("Players")
  3. local player = Players.LocalPlayer
  4. local punching = false
  5.  
  6. function doFirePunch()
  7. if punching or not player.Character then return end
  8. punching = true
  9.  
  10. local char = player.Character
  11. local hrp = char:FindFirstChild("HumanoidRootPart")
  12.  
  13. -- R15 & R6 punch animation
  14. local anim = Instance.new("Animation")
  15. anim.AnimationId = "rbxassetid://148840371" -- Replace with your custom fire punch anim
  16. local hum = char:FindFirstChildOfClass("Humanoid")
  17. local track = hum:LoadAnimation(anim)
  18. track:Play()
  19.  
  20. -- Fire visual
  21. local fire = Instance.new("ParticleEmitter", hrp)
  22. fire.Texture = "rbxassetid://243098098"
  23. fire.Rate = 300
  24. fire.Lifetime = NumberRange.new(0.2)
  25. fire.Speed = NumberRange.new(5)
  26. game.Debris:AddItem(fire, 0.3)
  27.  
  28. -- Damage effect
  29. for _, v in pairs(workspace:GetDescendants()) do
  30. if v:IsA("Humanoid") and v ~= hum then
  31. local root = v.Parent:FindFirstChild("HumanoidRootPart")
  32. if root and (root.Position - hrp.Position).Magnitude < 6 then
  33. v:TakeDamage(50)
  34. end
  35. end
  36. end
  37.  
  38. wait(0.5)
  39. punching = false
  40. end
  41.  
  42. -- Input for mobile & PC
  43. UserInputService.InputBegan:Connect(function(input, gp)
  44. if gp then return end
  45. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  46. doFirePunch()
  47. end
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment