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

turns on y axis when trying to turn on x axis, why is this happening and how can i fix it?

Asked by 3 years ago
Edited 3 years ago

my code:

local part = script.Parent
local part2 = game.Workspace.Part2
local line = game.Workspace.line
while line:GetTouchingParts(part2) ~= true do
    part.CFrame = part.CFrame * CFrame.Angles(math.rad(1), 0, 0)
    wait(0.01)
end

1 answer

Log in to vote
0
Answered by 3 years ago

solved by me

Ad

Answer this question