It still works with StarterPack, but when activated if it has been cloned from ReplicatedStorage to their backpack it does nothing, even though all the scripts are still in it.
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local coins = leaderstats:WaitForChild("Coins")
local button = script.Parent
button.MouseButton1Click:Connect(function()
if coins.Value < 50 then
print("Insufficient funds")
else
print("Purchase successful")
coins.Value -= 50
local item = game.ReplicatedStorage.ClassicSword
local newItem = item:Clone()
newItem.Parent = player.Backpack
end
end)