local tool = game.ServerStorage.Axe
local part = script.Parent
clickDet.MouseClick:Connect(function(p)
local toolClone = tool:Clone()
toolClone.Parent = p.Backpack
clickDet:Destroy()
repeat
part.Transparency = part.Transparency + .1
wait(.1)
until part.Transparency == 1
end)
My goal is to make a bag that gives an axe when clicked on and it also disappears after clicked. Originally, it worked fine, but now it doesn’t do anything! No errors.
From my calculations, he wants to make it so the tool giver disappears after a player clicks on it whilst giving the tool to the player, but what i’m confused about is if he wants it to be client (only for player) or server (for everyone).
I’m also thinking if he wants to make it so it’ll appear again if the player who clicked on it and got the tool died and lost the tool.
Try destroying the click detector after the repeat statement. If that doesnt work, simply turn off CanColide via CanColide = false and then set transparency to 0.
I want it to be for everyone, but I know that RemoteEvents should only be triggered by GUIs or SurfaceGui Buttons. It should also give the player the axe, but thats the only thing it doesnt do.