Hello, I have a loadout GUI that I need to setup so when going through the weapons it'll say locked or unlocked, an make the weapons buyable with leaderboard credits, an cycle through the weapons as you click an arrow to choose your weapons, an my equip button will be the button that gives you the weapon, this is all I have currently.
local currentGun = script.Parent.Background:WaitForChild("CurrentGun") local equippedGun = script.Parent.Background:WaitForChild("EquippedGun") local eqGun = equippedGun:WaitForChild("EGun") local cuGun = currentGun:WaitForChild("CGun") local v = currentGun:WaitForChild("GunNumber") while true do wait(.1) if v.Value == 0 then cuGun.Value = "Gun1" elseif v.Value == 1 then cuGun.Value = "Gun2" elseif v.Value == 2 then cuGun.Value = "Gun3" elseif v.Value == 3 then cuGun.Value = "Gun4" end equippedGun.Text = "Equipped: " .. eqGun.Value if currentGun.Owned.Value == false then currentGun.Text = cuGun.Value .. " [Locked]" elseif currentGun.Owned.Value == true then currentGun.Text = cuGun.Value .. " [Unlocked]" end end