Your CFrame.new has invalid syntax, CFrame.new() takes a single Vector3 as an input, and a Vector3 takes 3 numbers as an input, also, you cannot set the Z value of a CFrame’s position, also, to read the position of a CFrame you need to do part.CFrame.Position.
Making this particular script work should be as easy as changing
local part = game.Workspace.part
local antcframe = part.CFrame
wait(5)
print("listoooooooooo")
part.CFrame = antcframe+CFrame.new(Vector3.new(0,0,13.831))
It tells me in the output that I should remove the CFrame and put a vector in its place but it still doesn’t work
local part = game.Workspace.part
local antcframe = part.CFrame.Z
wait(5)
print("listoooooooooo")
part.CFrame = CFrame.new(Vector3.new(0,0,13.831 + antcframe))
I’m not positive this will work but I think it should. If not let me know (I think your issue was you were adding a Z of a Vector3 to a CFrame)
It didn’t work for me but I did something similar that did work for me:
local part = game.Workspace.part
local antcframe = part.CFrame
wait(5)
print("listoooooooooo")
part.CFrame = antcframe + CFrame.new(0,0,017.123)
But now I need to know how to add the Z axis frontally, since if the part (HumanoidRootPart) is from another angle then it goes backwards or I don’t know but what I do know is that it doesn’t work for me if you know how please