Parent can not be set for :Clone()

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? A gear shop system

  2. What is the issue? :Clone() doesnt allow the parent to be set when the instance was set through a remote event
    image

  3. What solutions have you tried so far? I saw somewhere that had the same parent issue and someone said to use :WaitForChild(“Ice Breaker”) on the fire event and it still didnt work

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local GearPurchased = ItemName:Clone()
GearPurchased.Parent = player.Backpack
local NewMoney = player.leaderstats.Cash.Value - 10
player.leaderstats.Cash.Value = NewMoney
print(player.Name.. "Success!")

This is the code that errors, Please Help!

ItemName has been referenced as
game.ReplicatedStorage.ShopItems["Ice Breaker"]
through a remote event

I know what i did, I forgot i didnt need to specifiy the player as part of the event