Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with this script?

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.