Script doesn't work

Me and my friend are trying to make this silly game where you’re a chicken and you have to cross the road, but the cars are extremely fast so it is difficult to cross. Issue is, the cars work and everything, however don’t move.

This is the only part of the script that doesn’t work:

Any help appreciated!

Can I see what the Tween function does?

local function Tween(...)
	TS:Create(...):Play()
end
1 Like

Did you check the output? And what does it say there?

Can you print all 5 CFrames for me? (vclone.CFrame, CarSpawnParts[1] and [2], workspace.Map.Ignore.CarSpeedPart1 and CarSpeedPart2)
And tell me the order so I don’t get them mixed up, lol

There are only things we told the game to print.
image

Can you show the CarSpawnParts table?

image
all in order

1 Like

image

Oh, you store the whole instance instead of just the CFrame.
Change the if statements to if vclone.CFrame == CarSpawnParts[1].CFrame and elseif vclone.CFrame == CarSpawnParts[2].CFrame

Isn’t CarSpawnParts an object and not a table? It should be CarSpawnParts:GetChildren()[1].CFrame instead of CarSpawnParts[1].

1 Like

That was already working, the only issue is the cars moving to the second points

Can you print CarSpawnParts[1] for me?

We got it working, but thanks for trying to help

What is CarSpawnParts[1]??? Can you just answer my question? I need to understand how it worked

Its so we can put the cars at the right spawn place, so it’s the first of 2 car spawns. One is in the left lane of the road, one is in the right. 1 is the name of the part that it spawns at

Ohh, I didn’t know it worked with numbers too.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.