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

MoveTo() and CFraming the Torso is not working is this a roblox bug currently?

Is this a bug or am I simply scripting it wrong?

When I try to move a player using MoveTo() It doesn't do anything

game.Players.Player1.Character:MoveTo(game.Players.Player2.Character.Torso.Position, game.Players.Player2.Character.Torso)

-- I also tryed CFraming it
game.Players.Player.Character.Torso.CFrame = CFrame.new(game.Players.Player2.Character.Torso.Position)

-- Both do not working, Assuming I'm using them correctly

4 comments

0

Are you doing this in a test server? If so, I think it's not working because you need to run the code from the Server side, not the clients.

0

Is there any output? Maybe the characters of the players are not available yet.

0

I tested this in online mode in my roblox place, and theres no output error. The script runs server-side also and im pretty sure im using moveTo() and CFrame correctly so I don't know what to do.

0

Figured out the problem I should of rechecked before I posted this its a simple mistake xD

1 answer

for _, Plr in pairs(game.Players:GetPlayers()) do --Get Players
Plr:MoveTo(Vector3.new(0,0,0))
end

I havent used MoveTo in a LONG time so it might be

Plr.Character.Torso:MoveTo(Vector3.new(0,0,0))

1 comment

0

Parts OR Players do not have a :MoveTo() method. They are correct in his original code.

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