of     1   

circa555
#190031423Monday, May 30, 2016 12:48 AM GMT

script.Parent.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then player.Backpack.explode:FireClient(player) player.Backpack.explodesound:Play() wait(0.1) script.Disabled = true end end) Ive been trying but idk what im doing wrong, I'm not a noob i swear Q.Q
circa555
#190032064Monday, May 30, 2016 12:56 AM GMT

anyone?
circa555
#190032218Monday, May 30, 2016 12:59 AM GMT

halp
Ignite_OneTime
#190032399Monday, May 30, 2016 1:01 AM GMT

looks fine to me
Techante
#190032467Monday, May 30, 2016 1:03 AM GMT

function onClicked(player) if player then player.Backpack.explode:FireClient(player) player.Backpack.explodesound:Play() wait(0.1) script.Disabled = true end end script.Parent.ClickDetector.MouseClick:connect(onClicked)
circa555
#190032493Monday, May 30, 2016 1:03 AM GMT

its in .Touched form right now, I need it in clicked (and no you cant just switch the functions only. I tried a lot of things but cant get it.)
Ignite_OneTime
#190032505Monday, May 30, 2016 1:03 AM GMT

oh nvm, its similar to this script but you'll need click detector in part and convert 'touched' to 'ClickDetector.MouseClicked'.
circa555
#190032532Monday, May 30, 2016 1:03 AM GMT

@Tech but do I need a click detector then?
Techante
#190032698Monday, May 30, 2016 1:06 AM GMT

I think it should automatically add one, but if it doesn't add one anywayz for the lols
circa555
#190032755Monday, May 30, 2016 1:07 AM GMT

actually, im using a screengui so click detactor wont work
Techante
#190033050Monday, May 30, 2016 1:11 AM GMT

Umg kid I'm gonna eat your cat. Ok, try this: function onClicked() local player = script.Parent.Parent.Parent.Parent if player then player.Backpack.explode:FireClient(player) player.Backpack.explodesound:Play() wait(0.1) script.Disabled = true end end script.Parent.MouseButton1Click:connect(onClicked)
iiEssence
#190033053Monday, May 30, 2016 1:11 AM GMT

function onClicked(player) if player then player.Backpack.explode:FireClient(player) player.Backpack.explodesound:Play() wait(0.1) script.Disabled = true end end theTextButton.MouseButton1Click:connect(onClicked)

    of     1