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)
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)
If i remember correctly, you need the Handle part of the hat to be connected to a part, otherwise it won't render.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
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)