Hello! I dont really get why is this happening, but as u will see in the following video my cart is behaving weirdly (shaking), because of hitbox.
robloxapp-20200621-0001461.wmv (3.3 MB)
The problem occurs when the cart is driving on the road, I don’t see it doing that while driving on terrain (maybe those shakes are not so strong and noticeable).
Here is the script:
local hitBox = Instance.new("Part", script.Parent)
hitBox.Name = script.Parent.Name
hitBox.Anchored = true
hitBox.Size = Vector3.new(8, 4, 10.75)
hitBox.CFrame = script.Parent.BasePart.CFrame * CFrame.new(0, 0, 0.25)
local boxWeld = Instance.new("WeldConstraint", script.Parent.BasePart)
boxWeld.Part0 = script.Parent.BasePart -- base part is the main part of my cart
boxWeld.Part1 = hitBox
hitBox.CanCollide = false
hitBox.Transparency = 1
If anyone knows why is this happening please help!