Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with Cloning?

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)

4 comments

0

Can you pls include the error?

0

I think you want to put DisplayOverHead to head in character right? So just add Char.Head

0

I suggest making a weld, that welds the part to whatever you want to stick too

0

Yup, you need to Weld.

1 answer

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.

1 comment

0

Did not work

This discussion is preserved as it was. New answers, comments, and votes are closed.