Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

C1 is not a valid member of WeldConstraint ? [solved I guess]

Asked by 4 years ago
Edited 4 years ago

I'm getting the error "C1 is not a valid member of WeldConstraint" at line 7. How is C1 not part of the weld?

service = game:GetService("TweenService")
info = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)


script.Parent.Changed:Connect(function(stat)
    if stat == "SteerFloat" then
        local wheel1 = service:Create(script.Parent.Parent.Chasis.FL.C1, info, {CFrame = script.Parent.Parent.Chasis.FL.C1*CFrame.Angles(0, math.rad(turn*script.Parent.Steer), 0)})
        local wheel2 = service:Create(script.Parent.Parent.Chasis.FR.C1, info, {CFrame = script.Parent.Parent.Chasis.FR.C1*CFrame.Angles(0, math.rad(turn*script.Parent.Steer), 0)})
        wheel1:Play()
        wheel2:Play()
    end
end)

It's really weird.

EDIT: I found out that WeldConstraints don't have a C0 or C1. Damn welds are difficult.

Answer this question