Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I get help with loadout?

Asked by 9 years ago

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.

01local currentGun = script.Parent.Background:WaitForChild("CurrentGun")
02local equippedGun = script.Parent.Background:WaitForChild("EquippedGun")
03local eqGun = equippedGun:WaitForChild("EGun")
04local cuGun = currentGun:WaitForChild("CGun")
05local v = currentGun:WaitForChild("GunNumber")
06while true do
07    wait(.1)
08    if v.Value == 0 then
09        cuGun.Value = "Gun1"
10    elseif v.Value == 1 then
11        cuGun.Value = "Gun2"
12    elseif v.Value == 2 then
13        cuGun.Value = "Gun3"
14    elseif v.Value == 3 then
15        cuGun.Value = "Gun4"
View all 23 lines...
0
"Can I get help with loadout?" is much too broad of a question. Please attempt to figure things out on your own, and if you get a bug you can't figure out, post it here Validark 1580 — 9y

Answer this question