Hi. I am having a little trouble with welding, I went through the wiki about it and I had managed to weld things to players. But my problem is, I don't know how to weld after they had died. Here is what I came up with, but it doesn't seem to work. By the way it is a local script inside the "StarterCharacterScripts".
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:connect(function()
local rp = game.ReplicatedStorage
local rp = game.ReplicatedStorage
local Head = rp:WaitForChild("Eye")
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char:WaitForChild('Head').Transparency = 0
--// Eyes
local ClonedLA = Head:Clone()
ClonedLA.Parent = char
ClonedLA.Main.CFrame = char:WaitForChild('Head').CFrame
local Weld = Instance.new('ManualWeld')
Weld.Part0 = ClonedLA.Main
Weld.Part1 = char:WaitForChild('Head')
Weld.C0 = ClonedLA.Main.CFrame:inverse() * char:WaitForChild('Head').CFrame
Weld.Parent = char:WaitForChild('Head')
end)
end)
end)
IS there something I am doing wrong? (By the way, it is possible to weld after the player as died. There are plenty games that have been able to accomplish what I have trouble doing.)
Any help would be appreciated.
