-
What do I want to achieve?
I need to move(teleport) car properly to its spawn point after spawning it in workspace. -
What is the issue?
Vehicle breaks, falls under map or just destroys for some reason. Car spawns properly in test baseplate file, but in my main game file this bug appears. -
What solutions have I tried so far?
I’ve tried moving the vehicle using CFrame, Position, MoveTo method and PivotTo method through a loop until the vehicle is close enough to a spawnpoint. The situation improved, but not much.
current vehicle move(teleportation) script
local car = carOriginalModel:Clone()
local spawnPoint = spawnPoints[math.random(1, #spawnPoints)]
repeat
task.wait(0.01)
car:PivotTo(spawnPoint.CFrame)
until (car:GetPivot().Position - spawnPoint.CFrame.Position).Magnitude <= 5