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

upgrades go away?

Asked by 9 years ago

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)
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. 1waffle1 2908 — 9y
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! docrobloxman52 407 — 9y
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. 1waffle1 2908 — 9y

1 answer

Log in to vote
-1
Answered by 9 years ago
elseif not game.Players.LocalPlayer.StarterGear.ClassicSword or game.Players.LocalPlayer.leaderstats.Credits.Value < 500 then
0
Explain your answer and how/why this is better, do not just offer the scripting. alphawolvess 1784 — 9y
0
this is my post and I was showing someone my script to see if its right docrobloxman52 407 — 9y
0
If you don't want it to stay after you die then don't put it in StarterGear. 1waffle1 2908 — 9y
Ad

Answer this question