so this is my script
while true do
wait(0.1)
if script.Parent.PrimaryPart.Position.Y == 11.1 then
wait(0.1)
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame + Vector3.new(0,0.1,0))
else
if script.Parent.PrimaryPart.Position.Y == 11.7 then
wait(0.1)
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame + Vector3.new(0,-0.1,0))
end
end
end
the primary part y axis position is 11.1 but still the if statement won’t work I tried to change it to CFrame.Position but still the same problem (There is no output errors the script just assume that the condition isn’t met