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

Help with Cloning?

Asked by
FiredDusk 1466 Moderation Voter
7 years ago

I get no error and the part does not get cloned into all players character.

game.Players.PlayerAdded:connect(function(Player)
    Player.CharacterAdded:connect(function(Char)
        local RS = game.ReplicatedStorage
        local Part = RS:WaitForChild("DisplayOverHead")
        local Head = Char:WaitForChild("Head")

        Part:Clone().Parent = Char
    end)
end)
0
Can you pls include the error? User#5423 17 — 7y
0
I think you want to put DisplayOverHead to head in character right? So just add Char.Head DevKarolus1 70 — 7y
0
I suggest making a weld, that welds the part to whatever you want to stick too NetworkMan243 65 — 7y
0
Yup, you need to Weld. manchester1002 57 — 7y

1 answer

Log in to vote
0
Answered by
daricr 0
7 years ago
game.Players.PlayerAdded:connect(function(Player)
      Player.CharacterAdded:connect(function(Char)
               local RS = game.ReplicatedStorage
               local Part = RS:WaitForChild("DisplayOverHead")



         Part:Clone().Parent = Char.Head
    end)
end)

Maybe this might help you, but I am not sure, maybe you need to weld.

0
Did not work FiredDusk 1466 — 7y
Ad

Answer this question