I’m trying to build some kind of skateboard however, as 30 second in playtesting “steering” become janky
External Mediaand what do i wan’t the axle to be
I’ve done messing around with the alignrotation properties, check if someone has similar issues, testing different methods of looping (to update the rotation), and can’t seem to find a great solution for it.
Here’s the script and alignorientation properties.
function updaterotation()
local BOx, BOy, BOz = base.BaseOrient.WorldCFrame:ToOrientation()
local turn1 = script.turn1.Value
local turn2 = script.turn2.Value
local turn3 = script.turn3.Value
constraint1.CFrame = CFrame.Angles(BOx, BOy, BOz) * CFrame.Angles(0, turn1, 0)
constraint2.CFrame = CFrame.Angles(BOx, BOy, BOz) * CFrame.Angles(0, turn2, 0)
constraint3.CFrame = CFrame.Angles(BOx, BOy, BOz) * CFrame.Angles(turn3, 0, math.rad(-90))
end
RunService.Stepped:Connect(updaterotation)
Help would be very appreciated.