So, I’ve been trying to figure this out and it absolutely makes no sense at all.
I have a script which moves a NPC’s HumanoidRootPart to a specific part’s position. However, when the NPC gets moved to the part (it’s noticeable on the screen), it gets teleported back to its previous position in an instant.
workspace.NPC.HumanoidRootPart.CFrame = workspace.TP2.CFrame -- if 'TP2' is a model set a part as the primary part, and instead do 'workspace.TP2.YourPart.CFrame'
I tried using both normal and a LocalScript (server-sided work isn’t bothering me atm, it’s just for a video package so I’m using LocalScripts) and the issue is still there. At first, I thought it was happening due to it being a LocalScript, but same things occurs.
Well, it runs an animation right after it gets teleported.
(Sorry for not mentioning) It has to be in StarterGui - need it for camera manipulation. Server-sided teleportation for the NPC doesn’t bother me atm. Regardless, it doesn’t work with a normal script either.