RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"If I click this button then I explode"
-- local script local button = script.Parent local Players = game:GetService('Players') local function explode() local player = Players.LocalPlayer local character = player.Character if character then local explosion = Instance.new('Explosion') explosion.Position = character.HumanoidRootPart.Position explosion.Parent = game.Workspace end end button.MouseButton1Click:Connect(explode)