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

How do i tp the players to it's clone?

script.Parent.OnServerEvent:Connect(function(plr,isActive)
	local value = plr.Backpack.TEActive.TPbc
	for _, chars in pairs(workspace:GetChildren()) do
		if chars:FindFirstChild("Humanoid") and chars ~= plr.Character  then
			chars.Archivable = true
			local copy = chars:Clone()
			copy.Name = chars.Name.." copy"
			copy.Parent = workspace.Clones
			game.Debris:AddItem(copy, 10.3)
			wait(10)
			chars.HumanoidRootPart.CFrame = copy.HumanoidRootPart.CFrame
		end
	  end
end)

so i want to make a clone of every player in the server and teleport all of em to their clones but when i put the wait(10) it doesn't work it works fine before the wait

2 answers

You could delete the wait(10) or you could instead of using CFrame, you could use chars.HumanoidRootPart.Positon = copy.HumanoidRootPart.Positon

SetPrimaryPartCFrame is your friend. You could take the player's model and do Char:SetPrimaryPartCFrame(Clone.CFrame).

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