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

Can't change other players CFrame ?

Whenever i try to change someones CFrame by using a script (i was using studio 2 player feature) it teleports the player to that CFrame then it teleports back immediately but for my char it works fine? No errors either.

for example i was using this

	for i,v in pairs (game.Players:GetPlayers()) do
			v.Character.Torso.CFrame = v.Character.part.CFrame

2 comments

0

change the v.Character.Torso Into "v.Character.HumanoidRootPart"

0

Still does the same thing and TPs back.

1 answer

You should change torso to HumanoidRootPart unless you're working with r6

for index, player in pairs(game.Players:GetPlayers()) do
	v.Character.HumanoidRootPart.CFrame = v.Character.part.CFrame
end

Remember you should not teleport them like this because it can break their char because you can get stuck into each other, so add * CFrame.new(0,index*5,0) or something like that.

1 comment

0

They aren't teleporting to the same spot and the part they're teleporting to is cancollide = false Also that doesn't fix my problem sadly, i am using r6 and i tried humanoidrootpart.CFrame and Torso.CFrame both seem to fling back to the original spot.

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