Can I get help with loadout?
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.
01 | local currentGun = script.Parent.Background:WaitForChild( "CurrentGun" ) |
02 | local equippedGun = script.Parent.Background:WaitForChild( "EquippedGun" ) |
03 | local eqGun = equippedGun:WaitForChild( "EGun" ) |
04 | local cuGun = currentGun:WaitForChild( "CGun" ) |
05 | local v = currentGun:WaitForChild( "GunNumber" ) |
10 | elseif v.Value = = 1 then |
12 | elseif v.Value = = 2 then |
14 | elseif v.Value = = 3 then |
17 | equippedGun.Text = "Equipped: " .. eqGun.Value |
18 | if currentGun.Owned.Value = = false then |
19 | currentGun.Text = cuGun.Value .. " [Locked]" |
20 | elseif currentGun.Owned.Value = = true then |
21 | currentGun.Text = cuGun.Value .. " [Unlocked]" |