Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Hello, I am 1STdewGmzTvThailand and I am going to teach you how to make an explosion where ever you click...]]--
- --I am going to make this a little quick, so if you get lost, please go back in the vid xD
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- --This has to be a local script.
- function onClicked()
- local x = Instance.new("Explosion", Workspace)--This means create new explosion in the workspace.
- x.Position = mouse.Hit.p
- x.BlastRadius = 15
- x.BlastPressure = 9e9
- end
- mouse.Button1Down:connect(onClicked)
- --If you are making a script that requires a key down or mouse button down, you need to recall your function. Like so:
- --mouse.Button1Down:connect(onClicked)
- --[[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()
- Well, enjoy. I will make this a free model and link in the description. Time to test this out :3
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement