Ok my basic shop script needs to send a script to the player's backpack. (I have starter gear too cause that's how I remember to make these kinda scripts) But when the player buys the item, it sends the script, instead of a copy. If another player tries to buy theitem it says "SlvrEnable Is not a valid member of replicated storage" and they cant get it. Any idea on what I'm doing wrong? If its filtering enabled I will cry cause I'm good at it XD.
SlvrEnable = game.ReplicatedStorage.SlvrEnable
game.ReplicatedStorage.SlvrPurchase.OnServerEvent:Connect(function(Player)
if Player.leaderstats.Coins.Value >= 25 then
Player.leaderstats.Coins.Value = Player.leaderstats.Coins.Value - 25
Player:WaitForChild ("Backpack")
game.ReplicatedStorage.SlvrEnable:Clone()SlvrEnable.Parent = Player.Backpack
game.ReplicatedStorage.SlvrEnable:Clone()SlvrEnable.Parent = Player.StarterGear
else
print ("not enough money")
end
end)

4 comments
This looks promising
Thank you so much! I know understand Clone()!
Wow this is sad he gets credit even though I made mine first...
lol @ above