Now I have been trying to make a game similar to this game https://www.roblox.com/games/refer?PlaceId=3437931225&Position=1&PageType=Profile But I do not know how to clone a player when they join, can someone please help me make this game thanks! P.S. I have tried Alvinblox's video and it did not work.
COMMUNITY QUESTION
How do I clone a player when they join?
2 answers
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
chr.Archivable = true --Make character "clonable"
local clone = chr:clone() -- Clone Character
clone.Parent = game.Workspace -- character parent
chr.Archivable = false --Make "unconable" again (optional)
end)
end)
I hope this works
You can do this
game.Player.PlayerAdded:Connect(function(plr) --plr joins
repeat wait() until plr.Character --wait for the plr's character to load in
local ClonedCharacter = plr.Character:Clone() - Get a clone of the plr's character
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
