So, I recently attempted making some sort of car to make a showcase game and move fast around my place which goes around 100k*100k studs in scale but when I attempted to use a script I made following this video it just produces those effects (Look the video below)
local seat = script.Parent.VehicleSeat
local backleft = script.Parent.BackLeft
local backright = script.Parent.BackRight
local frontleft = script.Parent.FrontLeft
local frontright = script.Parent.FrontRight
local steerAngle = 30
local speed = 60
seat:GetPropertyChangedSignal("Steer"):Connect(function()
frontleft.PB.SteeringConstraint.TargetAngle = steerAngle*seat.Steer
frontright.PB.SteeringConstraint.TargetAngle = steerAngle*seat.Steer
end)
seat:GetPropertyChangedSignal("Throttle"):Connect(function()
frontleft.Wales.WheelConst.AngularVelocity = speed*seat.Throttle
frontright.Wales.WheelConst.AngularVelocity = speed*seat.Throttle
backleft.Wales.WheelConst.AngularVelocity = speed*seat.Throttle
backright.Wales.WheelConst.AngularVelocity = speed*seat.Throttle
end)
That is the apparently malfunctioning code, as the tutorial video says I had to set the “CanCollide” property on PA and PB off but it does absolutely nothing.