Advertisement
1STdewGmztvThailand

(Explosion Script ROBLOX)

Oct 11th, 2015
11,906
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. --[[Hello, I am 1STdewGmzTvThailand and I am going to teach you how to make an explosion where ever you click...]]--
  2.  
  3.  
  4.  
  5. --I am going to make this a little quick, so if you get lost, please go back in the vid xD
  6.  
  7. plr = game.Players.LocalPlayer
  8. mouse = plr:GetMouse()
  9. --This has to be a local script.
  10. function onClicked()
  11. local x = Instance.new("Explosion", Workspace)--This means create new explosion in the workspace.  
  12. x.Position = mouse.Hit.p
  13. x.BlastRadius = 15
  14. x.BlastPressure = 9e9
  15. end
  16. mouse.Button1Down:connect(onClicked)
  17.  
  18. --If you are making a script that requires a key down or mouse button down, you need to recall your function. Like so:
  19. --mouse.Button1Down:connect(onClicked)
  20. --[[It really doesn't matter what you name your function.  As long as you have the () at the end of the name. I.D  function die()
  21. Well, enjoy.  I will make this a free model and link in the description.  Time to test this out :3 
  22.    
  23.     ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement