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:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function(click)
if player.leaderstats.Coins.Value >= 100 then
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - 100
game.ReplicatedStorage.Hats.RedSparkletimeFedora:Clone().Parent = player.Character
end
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!
