OG script:
game.ReplicatedStorage.Purchase.OnServerEvent:Connect(function(Player, Price, Item) local new = game.ServerStorage[Item]:Clone() new.Parent = game.Players[Player].Backpack end
Error: 13:21:12.619 - ServerScriptService.Leaderboard & Shop:3: bad argument #2 to '?' (string expected, got Object)
incapaxx answered in the comments, I didn't need to do game.Players[Player]
here's the fixed script
game.ReplicatedStorage.Purchase.OnServerEvent:Connect(function(Player, Price, Item) local new = game.ServerStorage[Item]:Clone() new.Parent = Player.Backpack end