This is currently a server script but I tried it as a local as well and they both worked in studio but neither work in-game
script.Parent.MouseButton1Click:connect(function() local player = script.Parent.Parent.Parent.Parent.Parent local char = game.Workspace[player.Name] local hat = game.ReplicatedFirst:FindFirstChild(script.Parent.Name) local cutie = hat:Clone() cutie.Parent = char end)