You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? A gear shop system
-
What is the issue? :Clone() doesnt allow the parent to be set when the instance was set through a remote event
-
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!