The player is sitting in a seat. I change their sit property to false then change their humanoidRootPartCFrame to a new location. The seat they were sitting on moves with them.
I added a wait() after changing their sit property to false and that fixed the problem, maybe.
Code sample:
local testPart = workspace.TestPart.Position
humanoid.Sit = false
wait() -- this fixes the problem
humanpoidRootPart.CFrame = CFrame.new(testPart)
I just feel like there is something I am not understanding. What I did works, but is there a better way?
Have been experiencing a similar issue when I was developing a custom character model. I remember that you need to wait for the SeatWeld to be destroyed.
humanoid.SeatPart.SeatWeld.Destroying:Wait()
I believe that should work.
It does not matter if this is a server or local script.