Not very experienced with CFrame and Parts, so I'll explain anyway, basically I want to check to see if something isn't at a certain Y value and if it is not it will change, here's what I mean:
function CheckYValue()
while wait() do
if Part.CFrame.Y ~= 458.4 then -- I think this is the problem..
Part.CFrame = Part.CFrame * CFrame.new(0, 0, 0.1) -- I can do this bit!
else
return
end
end

4 comments
Could you give a bit more context of what you are trying to do with the code?
The if statement on line 3, if the Part Y Value isn't at 458.4 then it will run the code.
I get that but what is the code doing that you are not expecting it to?
It moves the part up constantly, as shown on line 4, it doesn't stop even when it's past the height