Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I weld my helm to my head? It doesn't seem to work. :c Thanks...

Asked by 9 years ago

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)

0
Place your code inside a Lua code block. NotsoPenguin 705 — 9y

Answer this question