ImageButton.MouseButton1Down:connect(function() wait (1.5) Broadcast.ImageButton:remove() So I have this so far, but after the imagebutton removes itself, i want to get a pickaxe from the lighting, what do I do afterwards.
1 | pickaxe = game.Lighting.pickaxe --im assuming its called pickaxe |
2 | function pickAxe() |
3 | wait( 1.5 ) |
4 | Broadcast.ImageButton:remove() |
5 | pickaxe = game.Lighting.pickaxe:clone() -- gets the pickaxe and clones it |
6 | pickaxe.Parent = game.Players.Backpack --this will make the pickaxe child of the players backpack |
7 | end |
8 | script.ParentMouseButton 1 Down:connect() -- function connect line |