Heres the script.~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~
local description = "You got a Power Star!!!!!"
local respawn = true
local debounce = false
script.Parent.Touched:connect(function(part)
if not debounce then debounce = true local player = game.Players:GetPlayerFromCharacter(part.Parent) if player then if player:findFirstChild("OneTimeItems") and player:findFirstChild("leaderstats") and not player.PlayerGui:findFirstChild("ItemGet") then if not player.OneTimeItems:findFirstChild(identifier) then --create an identifier (accoutrements have cool icons) local newidentifier = Instance.new("Accoutrement",player.OneTimeItems) newidentifier.Name = identifier --update stats local stats = player.leaderstats:findFirstChild(stat) if stats then stats.Value = stats.Value + 1 else print(stat.." not found in leaderstats") end