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
Code block dude...
Also is FilteringEnabled on? What kind of script is this in?
It's very likely he's new to the site, so I'd cut him some slack.
I am using a regular script
You'd cut him some slack but he's got 5 points, which is enough to know to use a code block.
Is this with FilteringEnabled?
I don't know what that is