Advertisement
PlanetTheo

Explosion On Click Script LUA

Mar 12th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mouse = plr:GetMouse()
  3. function onClicked()
  4. local x = Instance.new("Explosion", Workspace)--This means create new explosion in the workspace.
  5. x.Position = mouse.Hit.p
  6. s=Instance.new'Sound';
  7. s.Parent=workspace;
  8. s.SoundId='rbxassetid://1776706665'; --change sound id here
  9. s.Pitch=1;
  10. s.Volume=10;
  11. s:play();
  12. x.BlastRadius = 15
  13. x.BlastPressure = 9e9
  14. end
  15. mouse.Button1Down:connect(onClicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement