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

Attempt to index nil with "Position"?

Asked by 2 years ago

Hey, so the title says it all " Attempt to index nil with 'Position' "

So, whenever the part gets farther away then the speed of the increment(0.1) goes faster... But It won't work, any solutions?

Code:

Move.MouseDrag:Connect(function(Face, Distance)
    Distance=math.round(Distance/MoveIncrement)*MoveIncrement == 0.1 / Part - Root.Position.Magnitude
    lib.SetPos(OldCFrame + (Vector3.FromNormalId(Face)*Distance))
    Highlight.FillTransparency = 1
    Highlight.OutlineColor = Color3.fromRGB(20, 11, 165)
end)
0
Oh hey guys, I forgot to add .Position in line 2 that's where the problem starts Pro_beatz 36 — 2y

Answer this question