Advertisement
Elvisfofo_rblx

Fire Punch Script

Jun 22nd, 2025
1,571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3. local RunService = game:GetService("RunService")
  4.  
  5. local LocalPlayer = Players.LocalPlayer
  6. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  7.  
  8. -- Rig detection
  9. local function getRigType()
  10. local humanoid = Character:FindFirstChildOfClass("Humanoid")
  11. return humanoid and humanoid.RigType == Enum.HumanoidRigType.R15 and "R15" or "R6"
  12. end
  13.  
  14. -- Play punch animation
  15. local function playPunchAnim()
  16. local humanoid = Character:FindFirstChildOfClass("Humanoid")
  17. if not humanoid then return end
  18.  
  19. local anim = Instance.new("Animation")
  20. if getRigType() == "R15" then
  21. anim.AnimationId = "rbxassetid://507777826" -- R15 punch
  22. else
  23. anim.AnimationId = "rbxassetid://148840371" -- R6 punch
  24. end
  25.  
  26. local track = humanoid:LoadAnimation(anim)
  27. track:Play()
  28. game.Debris:AddItem(anim, 3)
  29. end
  30.  
  31. -- Fire effect
  32. local function addFireEffect(part)
  33. local fire = Instance.new("Fire", part)
  34. fire.Size = 8
  35. fire.Heat = 10
  36. game.Debris:AddItem(fire, 1.5)
  37. end
  38.  
  39. -- Punch logic
  40. local punching = false
  41. local function doFirePunch()
  42. if punching then return end
  43. punching = true
  44.  
  45. local rightHand = Character:FindFirstChild("RightHand") or Character:FindFirstChild("Right Arm")
  46. if not rightHand then return end
  47.  
  48. playPunchAnim()
  49. addFireEffect(rightHand)
  50.  
  51. local touchedConnection
  52. touchedConnection = rightHand.Touched:Connect(function(hit)
  53. local enemyChar = hit:FindFirstAncestorOfClass("Model")
  54. if enemyChar and enemyChar ~= Character and enemyChar:FindFirstChild("Humanoid") then
  55. enemyChar.Humanoid:TakeDamage(100)
  56. local root = enemyChar:FindFirstChild("HumanoidRootPart") or hit
  57. addFireEffect(root)
  58. touchedConnection:Disconnect()
  59. end
  60. end)
  61.  
  62. wait(0.8) -- punch cooldown
  63. punching = false
  64. end
  65.  
  66. -- Touch input (mobile friendly)
  67. UserInputService.TouchTap:Connect(function()
  68. doFirePunch()
  69. end)
  70.  
  71. -- Optional notification
  72. pcall(function()
  73. game.StarterGui:SetCore("SendNotification", {
  74. Title = "🔥 Fire Punch Ready",
  75. Text = "Tap anywhere to punch!",
  76. Duration = 4
  77. })
  78. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement