Hello! I am trying to make a hat shop for my game. As you can see here, I'm trying to clone a hat to a player's character, but it's not working. When I go test it, it shows that the accessory is in the character model, however you can't see the accessory. Here is my code:
1 local player = game.Players.LocalPlayer
2
3 script.Parent.MouseButton1Click:Connect(function(click)
4 if player.leaderstats.Coins.Value >= 100 then
5 player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - 100
6 game.ReplicatedStorage.Hats.RedSparkletimeFedora:Clone().Parent = player.Character
7 end
8 end)
Below, you can see that the accessory is in my character, but doesn't appear to be on my character. I'm fairly new too scripting. I've read that sometimes when accessories are cloned, their AccessoryWelds disappear, but I'm not sure if that's the case here. Any help is much appreciated!

1 comment
Thank you so much! This was exactly what I was looking for!