So for some reason some piece of code doesn't follow any new things that they're being told about;
run.Stepped:Connect(function()
print(divecframe)
if dive == true then
script.Parent.HumanoidRootPart.CFrame = CFrame.new(script.Parent.HumanoidRootPart.Position), CFrame.Angles(0, divecframe, 0)
end
end)

2 comments
I put your code in a codeblock. It is expected that you do this yourself next time. https://forum.scriptinghelpers.org/topic/911/how-to-format-questions-answers-on-the-main-site-2
what is the divecframe value???