Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UIS = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- local nuking = false
- function doNukeFist()
- if nuking or not player.Character then return end
- nuking = true
- local char = player.Character
- local hrp = char:FindFirstChild("HumanoidRootPart")
- -- Flash effect
- local flash = Instance.new("Explosion", workspace)
- flash.Position = hrp.Position
- flash.BlastRadius = 20
- flash.BlastPressure = 100000
- flash.DestroyJointRadiusPercent = 0
- -- Shockwave
- local shock = Instance.new("Part", workspace)
- shock.Anchored = true
- shock.Size = Vector3.new(1, 1, 1)
- shock.Position = hrp.Position
- shock.Shape = Enum.PartType.Ball
- shock.Material = Enum.Material.Neon
- shock.Color = Color3.new(1, 1, 0)
- shock.Transparency = 0.3
- shock.Size = Vector3.new(1, 1, 1)
- game.Debris:AddItem(shock, 0.5)
- for i = 1, 20 do
- shock.Size = shock.Size + Vector3.new(2, 0.5, 2)
- wait(0.01)
- end
- -- Damage nearby players
- for _, v in pairs(workspace:GetDescendants()) do
- if v:IsA("Humanoid") and v ~= char:FindFirstChildOfClass("Humanoid") then
- local r = v.Parent:FindFirstChild("HumanoidRootPart")
- if r and (r.Position - hrp.Position).Magnitude < 25 then
- v:TakeDamage(100)
- end
- end
- end
- wait(1)
- nuking = false
- end
- UIS.InputBegan:Connect(function(input, g)
- if g then return end
- if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
- doNukeFist()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment