Advertisement
FloweyTheFlower

Roblox Scripts #54 Click to Explode

Sep 25th, 2017
5,140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mouse = plr:GetMouse()
  3. --This has to be a local script.
  4. function onClicked()
  5. local x = Instance.new("Explosion", Workspace)--This means create new explosion in the workspace.  
  6. x.Position = mouse.Hit.p
  7. x.BlastRadius = 15
  8. x.BlastPressure = 9e9
  9. end
  10. mouse.Button1Down:connect(onClicked)
  11. -- how to use? Just Left Click it gonna explode on u click XD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement