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

upgrades go away?

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

0

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.

0

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!

0

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.

1 answer

elseif not game.Players.LocalPlayer.StarterGear.ClassicSword or game.Players.LocalPlayer.leaderstats.Credits.Value < 500 then

3 comments

0

Explain your answer and how/why this is better, do not just offer the scripting.

0

this is my post and I was showing someone my script to see if its right

0

If you don't want it to stay after you die then don't put it in StarterGear.

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