Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local Debris = game:GetService("Debris")
- local LocalPlayer = Players.LocalPlayer
- local function getCharacter()
- return LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
- end
- local function getRigType()
- local humanoid = getCharacter():FindFirstChildOfClass("Humanoid")
- return humanoid and humanoid.RigType == Enum.HumanoidRigType.R15 and "R15" or "R6"
- end
- -- Punch animation
- local function playPunchAnim()
- local character = getCharacter()
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if not humanoid then return end
- local anim = Instance.new("Animation")
- anim.AnimationId = getRigType() == "R15" and "rbxassetid://507777826" or "rbxassetid://148840371"
- local track = humanoid:LoadAnimation(anim)
- track:Play()
- Debris:AddItem(anim, 3)
- end
- -- Flash FX
- local function flashEffect(pos)
- local flash = Instance.new("Part")
- flash.Anchored = true
- flash.CanCollide = false
- flash.Size = Vector3.new(1,1,1)
- flash.CFrame = CFrame.new(pos)
- flash.Shape = Enum.PartType.Ball
- flash.Material = Enum.Material.Neon
- flash.BrickColor = BrickColor.new("Institutional white")
- flash.Parent = workspace
- Debris:AddItem(flash, 0.3)
- flash:TweenSize(Vector3.new(100,100,100), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.3, false)
- end
- -- Mushroom cloud (visual nuke)
- local function mushroomCloud(pos)
- local cloud = Instance.new("Part")
- cloud.Anchored = true
- cloud.CanCollide = false
- cloud.Size = Vector3.new(10, 10, 10)
- cloud.Shape = Enum.PartType.Ball
- cloud.Material = Enum.Material.ForceField
- cloud.BrickColor = BrickColor.new("Dark stone grey")
- cloud.Transparency = 0.2
- cloud.CFrame = CFrame.new(pos + Vector3.new(0, 20, 0))
- cloud.Parent = workspace
- Debris:AddItem(cloud, 5)
- cloud:TweenSize(Vector3.new(150, 150, 150), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 3, false)
- end
- -- Nuke Explosion
- local nuking = false
- local function nukePunch()
- if nuking then return end
- nuking = true
- local char = getCharacter()
- local hand = char:FindFirstChild("RightHand") or char:FindFirstChild("Right Arm")
- if not hand then return end
- playPunchAnim()
- wait(0.3)
- local pos = hand.Position
- -- Flash and cloud
- flashEffect(pos)
- mushroomCloud(pos)
- -- Big explosion
- local boom = Instance.new("Explosion")
- boom.Position = pos
- boom.BlastRadius = 100
- boom.BlastPressure = 1000000
- boom.DestroyJointRadiusPercent = 0
- boom.ExplosionType = Enum.ExplosionType.NoCraters
- boom.Parent = workspace
- -- Damage anyone nearby
- boom.Hit:Connect(function(hitPart, dist)
- local model = hitPart:FindFirstAncestorOfClass("Model")
- if model and model ~= char and model:FindFirstChild("Humanoid") then
- model.Humanoid:TakeDamage(500)
- end
- end)
- wait(1.5)
- nuking = false
- end
- -- Tap anywhere = Nuke Fist
- UserInputService.TouchTap:Connect(function()
- nukePunch()
- end)
- -- Optional popup
- pcall(function()
- game.StarterGui:SetCore("SendNotification", {
- Title = "☢️ Nuke Fist Ready",
- Text = "Tap anywhere to unleash nuclear punch!",
- Duration = 4
- })
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement