Ok so I am using a hopperbin tool and I used a regular tool too. I want to make it where when wherever you click a explosion happens. For some reason this is not working, but it works on studio. Just not in-game.

tool = script.Parent

function click(mouse) local explosion = Instance.new("Explosion") explosion.Position = mouse.hit.p explosion.Parent = game.Workspace explosion.BlastRadius = 6 explosion.BlastPressure = 150000 end

function selected(mouse) mouse.Button1Down:connect(function () click(mouse) end) end

tool.Selected:connect(selected)

7 comments

0

Code block dude...

0

Also is FilteringEnabled on? What kind of script is this in?

0

It's very likely he's new to the site, so I'd cut him some slack.

0

I am using a regular script

0

You'd cut him some slack but he's got 5 points, which is enough to know to use a code block.

0

Is this with FilteringEnabled?

0

I don't know what that is