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 10 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 10 years ago
pickaxe = game.Lighting.pickaxe --im assuming its called pickaxe
function pickAxe()
    wait(1.5)
    Broadcast.ImageButton:remove() 
    pickaxe = game.Lighting.pickaxe:clone() -- gets the pickaxe and clones it
    pickaxe.Parent = game.Players.Backpack --this will make the pickaxe child of the players backpack
end 
script.ParentMouseButton1Down:connect() -- function connect line
Ad

Answer this question