Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
Voltoxus 248 Moderation Voter
10 years ago

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
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. Tkdriverx 514 — 10y
0
Is there any output? Maybe the characters of the players are not available yet. Spongocardo 1991 — 10y
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. Voltoxus 248 — 10y
0
Figured out the problem I should of rechecked before I posted this its a simple mistake xD Voltoxus 248 — 10y

1 answer

Log in to vote
-5
Answered by 10 years ago
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))
0
Parts OR Players do not have a :MoveTo() method. They are correct in his original code. Tkdriverx 514 — 10y
Ad

Answer this question