RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a nuke gear script"
-- script for nuke gear local tool = script.Parent local explosionRadius = 50 local explosionDamage = 100 local function nuke() local character = tool.Parent local player = game.Players:GetPlayerFromCharacter(character) if player then local explosion = Instance.new("Explosion") explosion.Position = character.HumanoidRootPart.Position explosion.BlastRadius = explosionRadius explosion.BlastPressure = 0 explosion.DestroyJointRadiusPercent = 0 explosion.Parent = workspace explosion.Hit:Connect(function(hitPart, distance) local hitCharacter = hitPart.Parent local hitHumanoid = hitCharacter:FindFirstChild("Humanoid") if hitHumanoid then local damage = (1 - distance / explosionRadius) * explosionDamage hitHumanoid:TakeDamage(damage) end end) end end tool.Activated:Connect(nuke)