Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Sword not upgrading?

Hi I am testing lots of scripts and I was scripting an upgrade button for my sword. It doesn't work and the output says "LungeDamage is not a valid member of Configurations". Can you help?

function ontouched()
	game.StarterPack.ClassicSword.Configurations.LungeDamage = 100
	print('Sword upgraded!')
end
script.Parent.MouseButton1Down:connect(ontouched)

1 answer

✓ Accepted answer

Assuming LungeDamage is a value, you'll need to add .Value after the LungeDamage part.

    game.StarterPack.ClassicSword.Configurations.LungeDamage.Value = 100

This discussion is preserved as it was. New answers, comments, and votes are closed.