So im trying to fix this,But ive got no idea how.
while true do
wait()
if Player.PlayerGui:FindFirstChild("ShopGUI") then
Player.PlayerGui.ShopGUI.ValorUltra.MouseButton1Click:connect(clicked)
else
end
end
The idea is that the loop runs infinetly,So whenever "ShopGUI" is found in his backpack it runs the function once.
Anyone help?
