So what i want to do is to when you click an objects it plays a sound, and then it explodes, so i did that :
function clickity(playerWhoClicked) wait 0.5 -- The good ol' delay local i = 1 local exp = Instance.new('Explosion',game.Workspace) exp.Name=(i) exp.Position = script.Parent.Position script.Parent.Parent:Destroy() local i = (i + 1) end script.Parent.ClickDetector.MouseClick:connect(clickity)
And it only played the sound... but not this scripts, the is a separate script for the sound and the explosion. i need help ! and maybe give me a better working script than this