Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = script.Parent
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- tool.Activated:Connect(function()
- --> BLOQUE BOMBA
- local bomb = tool.Handle:Clone()
- bomb.CanCollide = true
- bomb.Parent = game.Workspace
- bomb.CFrame = tool.Handle.CFrame*CFrame.new(0,0,-1)
- bomb.Velocity = mouse.Hit.lookVector*50 -- VELOCIDAD DE BOMBA , PUEDES BORRARLO SI SOLO QUIERES SOLTARLO
- --> EXPLOSIÓN
- script.Disabled = true
- wait(1) -- TIEMPO DE ESPERA DE EXPLOSIÓN
- local explosion = Instance.new("Explosion")
- explosion.Position = bomb.Position
- explosion.Parent = game.Workspace
- explosion.BlastRadius = 10 -- ÁREA DE EXPLOSIÓN
- bomb:Destroy()
- script.Disabled = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement