Cloning Accessory and Placing it into the Player

Hello, Devforum.

So, I am making a system where the player gets a randomized accessory on their avatar. But there is a problem. The script thinks that I want to place the Cloned Accessory into the Player in game.Players, I want to place it in the player in the Workspace so you can see the accessory.

here is what I have

local prompt = game.Workspace.Phil.PromptPart.ProximityPrompt

local hatFolder = game:GetService("ServerStorage").Accessories

		local hatClone = hatFolder.Doge:Clone()
		hatClone.Parent = plr

This script puts the hatClone into the player in game.Players, not the one in workspace.
Any easy way to make the hatClone go into the player in workspace?

Replace the hatClone.Parent = plr with hatClone.Parent = plr.Character

1 Like

It worked! Thank you so much! :grinning:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.