Hi I am trying to make it so that if you upgrade and you die it goes away. Can you help?
function click()
if script.Parent.Parent.Frame.Visible == false then
script.Parent.Parent.Frame.Visible = true
if game.Players.LocalPlayer.Backpack.ClassicSword.Configurations.LungeDamge == 50 then
script.Parent.Parent.Frame.upgrade1.Active = false
script.Parent.Parent.Frame.upgrade1.Visible = false
end
elseif script.Parent.Parent.Frame.Visible == true then
script.Parent.Parent.Frame.Visible = false
end
end
script.Parent.MouseButton1Down:connect(click)

3 comments
How does "upgrading" work? Things going away when you die is the default behavior in Roblox. I don't know what this script is for.
so basically when you have enough points you can upgrade the sword to make more damage then that upgrade button goes away. But if you die and you bought the upgrade it comes back. I want to prevent that!
Yeah I know what upgrading is, I don't know how you made it. I don't know how to prevent it because I don't know how it works because I don't know anything about it.