Help with teleporting a character while its sitting

if game.Workspace.lobby.beverageIntaker.SeatB1.Seat:FindFirstChild("SeatWeld") then
	game.Workspace.lobby.beverageIntaker.SeatB1.Seat:FindFirstChild("SeatWeld"):Destroy()
	print("destroyed sitting1")
end
if game.Workspace.lobby.beverageIntaker.SeatB2.Seat:FindFirstChild("SeatWeld") then
	game.Workspace.lobby.beverageIntaker.SeatB2.Seat:FindFirstChild("SeatWeld"):Destroy()
	print("destroyed sitting2")
end
if game.Workspace.lobby.beverageIntaker.SeatB3.Seat:FindFirstChild("SeatWeld") then
        game.Workspace.lobby.beverageIntaker.SeatB3.Seat:FindFirstChild("SeatWeld"):Destroy()
        print("destroyed sitting3")
end
if game.Workspace.lobby.beverageIntaker.SeatB4.Seat:FindFirstChild("SeatWeld") then
        game.Workspace.lobby.beverageIntaker.SeatB4.Seat:FindFirstChild("SeatWeld"):Destroy()
	print("destroyed sitting4")
end
if game.Workspace.lobby.beverageIntaker.SeatB5.Seat:FindFirstChild("SeatWeld") then
	game.Workspace.lobby.beverageIntaker.SeatB5.Seat:FindFirstChild("SeatWeld"):Destroy()
	print("destroyed sitting5")
end
v.Character.Humanoid.Sit = false
v.Character:MoveTo(randomMap.spawns["spawn"..math.random(1,3)].Position)

So this script basically checks if anyone is sitting in a chair before teleporting them to a place. However, this does not work, even after my attempts of making the character humanoid not sit and even deleting its weld to the chair, i know it even works since it prints, it still does not teleport the character and the character stays in the exact same spot except not sitting. When the character wasn’t sitting in the first place, then they do get teleported. Any suggestions on how to fix this?

Not sure if anything would change, but I suggest using Character.HumanoidRootPart.CFrame rather than Character:MoveTo. Let me know if anything changes.

1 Like

No changes in behavior…

dfdfasfnhasdoufbdwohpfohiqwegvhkfbjlqjwefhougieqwhfjopqweihoufgweijpofi
I have no idea why its asking me for more words to make a post so I just typed a bunch

MoveTo is used for like, moving your character from Point A to Point B (walking).

If you wish to teleport the Character do this:

-- PivotPoint is the 3D Models equivalence to a GUI's AnchorPoint.
Character:PivotTo(Character:GetPivot() * CFrame.new(randomMap.spawns["spawn"..math.random(1,3)].Position))

MoveTo() on a model will instantly move it
MoveTo() on humanoid will move character from point A to B by walking

Great to know! But I would recommend using PivotTo on all models. :slight_smile:

1 Like

I figured it out, unfortunately your pivot to method didn’t work, but I did humanoid.jump = true and I didn’t have to go through making sure there was no welds in each chair and now it works!