SHOW:
|
|
- or go back to the newest paste.
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 |
13 | + | x.BlastRadius = inf |
14 | - | x.BlastPressure = 9e9 |
14 | + | x.BlastPressure = inf |
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 | ]] |