function GetHelm(newPlayer) humanoid = newPlayer.Parent:findFirstChild("Humanoid") if humanoid then print(humanoid.Parent.Name) head = newPlayer.Parent.Head hel = game.Workspace.Helmet:Clone() hel.Name = "NewHelm" game.Workspace.Helmet: print("Cloned, and renamed!") print(hel.Name) weld = Instance.new("Weld") weld.Part0 = head weld.C0 = head.CFrame:inverse() weld.Part1 = hel weld.C1 = hel.Parent:inverse() end end --game.Player.PlayerAdded is for joining with a character, or a player. game.Players.PlayerAdded:connect(GetHelm)
COMMUNITY QUESTION
How can I weld my helm to my head? It doesn't seem to work. :c Thanks...
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Place your code inside a Lua code block.