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
8 years ago

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

1game.Players.PlayerAdded:connect(function(Player)
2    Player.CharacterAdded:connect(function(Char)
3        local RS = game.ReplicatedStorage
4        local Part = RS:WaitForChild("DisplayOverHead")
5        local Head = Char:WaitForChild("Head")
6 
7        Part:Clone().Parent = Char
8    end)
9end)
0
Can you pls include the error? User#5423 17 — 8y
0
I think you want to put DisplayOverHead to head in character right? So just add Char.Head DevKarolus1 70 — 8y
0
I suggest making a weld, that welds the part to whatever you want to stick too NetworkMan243 65 — 8y
0
Yup, you need to Weld. manchester1002 57 — 8y

1 answer

Log in to vote
0
Answered by
daricr 0
8 years ago
01game.Players.PlayerAdded:connect(function(Player)
02      Player.CharacterAdded:connect(function(Char)
03               local RS = game.ReplicatedStorage
04               local Part = RS:WaitForChild("DisplayOverHead")
05 
06 
07 
08         Part:Clone().Parent = Char.Head
09    end)
10end)

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

0
Did not work FiredDusk 1466 — 8y
Ad

Answer this question