im making a tower defense game but when i try to make the new upgrade system it doesnt work
-
What do you want to achieve? i wanna make the tower upgrade through going into the number values (Level and NextLevel) and when it goes through nextlevel value then it haves the stats of the folder of the next level value
-
What is the issue? I get this error
"Upgrades is not a valid member of Folder "Workspace.Towers.Soldier.Upgrades.1"
-
What solutions have you tried so far? I have no idea how to fix this
local upgradeTower = selectedTower.Upgrades[selectedTower.Level.Value].Config.Level.NextLevel
local upgradeSuccess = spawnTowerFunction:InvokeServer(upgradeTower.Value, selectedTower.PrimaryPart.CFrame, selectedTower)