Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with this script?

Asked by 11 years ago

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 answer

Log in to vote
0
Answered by 11 years ago
1pickaxe = game.Lighting.pickaxe --im assuming its called pickaxe
2function 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
7end
8script.ParentMouseButton1Down:connect() -- function connect line
Ad

Answer this question