Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Hat cloning script doesn't work?

Any help is appreciated, all hierarchy is correct.

game.Players.PlayerAdded:connect(function(p)
		local char = p.WaitForChild("Character")
		local hat = game.Lighting.MidnightDominus:Clone()
		hat.Parent = char
end)

1 answer

If i remember correctly, you need the Handle part of the hat to be connected to a part, otherwise it won't render.

1 comment

0

New code: game.Players.PlayerAdded:connect(function(p) local char = p:WaitForChild("Character") local hat = game.ReplicatedStorage.MidnightDominus:Clone() hat.Parent = char hat.Handle.CFrame = char.Head.CFrame * CFrame.new(0, char.Head.Size.Y / 2, 0) * hat.AttachmentPoint:inverse() end)

This discussion is preserved as it was. New answers, comments, and votes are closed.