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

Model moving script help?

Asked by
JJ_B 250 Moderation Voter
9 years ago

I making a script where a model moves in one direction. There are no errors in the output, but it just prints the line in blue and the script fails to work. Here is the code around that line.

local p = game.Workspace.Stardrive:GetChildren()
        for i = 1,#p do
        repeat
            p.CFrame = p.CFrame + Vector3.new(0,0,10)
        until
            game.Workspace.Stardrive.Shape.Positon == Vector3.new(-37.96, 16.255, 868.946)
        end

Can anybody help to identify the problem?

Answer this question