This script should work, I don't know why it doesn't, grateful if anybody can fix it! The parenting is correct, it's located in starterpack Here's a link to what it looks like https://ibb.co/bxbgQa
me = script.Parent.Parent.Parent
if me.Name == game.workspace.Home.OwnerName.Value then
if me:findFirstChild("leaderstats") then
if me.leaderstats[script.Parent.Currency.Value].Value>=tonumber(script.Parent.Cost.Value) then
game.ServerStorage["Sword"]:Clone().Parent = me.Backpack
end

4 comments
click the view source thing to view it correctly, because this is not what it looks like
me = script.Parent.Parent - That's the correct "me" variable.
It's in a model though
ALSO - this code worked perfectly fine before I added the 4th and 5th lines so that's obviously where the error is