#lineup car chassis problem

1 messages · Page 1 of 1 (latest)

rain pulsar
#

Hello. Problem: The system always teleports cars differently. It teleports one chassis correctly, but it teleports the other chassis completely randomly. There's no pattern. I think I need to use some other method of transport, but I don't know which one. I'm hoping for your help.

local lineupMaxPlayers = self.raceContainer:GetAttribute(Constants.START_LINEUP_MAX_PLAYERS_ATTRIBUTE)
local lineupPadding = self.raceContainer:GetAttribute(Constants.START_LINEUP_PADDING_ATTRIBUTE)
local position = self.startingArea.Position
local direction = (self.checkpoints[1].Position - position) * Vector3.new(1, 0, 1)
local lineupCFrame = CFrame.lookAt(position, position + direction)

lineupPlayers(self.players, lineupCFrame, lineupMaxPlayers, lineupPadding)
local alignPositions = holdPlayers(self.players)
self.lineupAlignPositions = alignPositions

nova roseBOT
#

studio** You are now Level 3! **studio

rain pulsar
#

my chassis / different chassis

#

as you can see, the car should be teleported right in the starting box

#

But another chassis teleports at a completely different angle and position. And there is no pattern.

#

however, if you take the same car that had an wrong teleportation and start the race again, it will no longer teleport at all.