so I have multiple hammers and I want it to be like if you have a certain amount of energy the archivable becomes true for the fire hammer and the rusted hammer archivable becomes false. Here is the script raid6n gave me.
local plr = game.players.localplayer local tool = script.parent local power = plr.leaderstats.power if tool.Parent == plr.Backpack then power += 500 end
local plr = game.Players.LocalPlayer local tool = script.parent local Energy = plr.leaderstats.Energy if Energy =< 500 then tool.Parent = game.Starterpack end
similar to what raid said
local plr = game.Players.LocalPlayer local rustHammar = --whatever it is local fireHammar = script.Parent local Energy = plr.leaderstats.Energy while true do if Energy =< 500 then tool.Parent = plr.Backpack rustHammar.Archivable = true break end end