i tried making a tweening pedestrian's car but i tried but it rotates how do i shut the rotation down?
i can't even fix this thing by myself here's the code:
local TweenService = game:GetService("TweenService")
local part = script.Parent
local cframelocation = script.Parent.Parent.CarStopBrick2.Position
local cframelocation2 = script.Parent.Parent.CarStopBrick2.Orientation
local Info = TweenInfo.new(
10, -- Length
Enum.EasingStyle.Linear, -- Easing Style
Enum.EasingDirection.InOut, -- Easing Direction
999999999999999999999999999999999, -- Times repeated
false, -- Reverse
0 -- Delay
)
local Goals =
{
CFrame = CFrame.new(cframelocation);
Orientation = Vector3.new(cframelocation2)
}
local tween = TweenService:Create(part,Info,Goals)
tween:Play()
the original orientation of my fake car is (0,-90,0) when i tried to run the test the car spin itself back to (0,0,0).

1 comment
btw idk how to share a footage anyway.