C0 Orientation all of a sudden does not work

	mouse.Move:Connect(function(direction)

		if isGliding == true then

			local Delta = UserInputService:GetMouseDelta()
			local Value = math.sign(Delta.X)
			local CurrentOrientation = self.CurrentOrientation
			local RootWaistC0 = Character.LowerTorso.Root.C0

			if Value > 0 then
				print("Right")
				RootWaistC0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(-1.5))
			else
				print("Left")
				RootWaistC0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(1.5))
			end
			
		end

	end)

So this was working perfectly fine before I left for class, but now its not working at all. I was planning on also using a variable and clamping it in order to limit the angle. Any help would be much appreciated as I really have no idea why this happened out of the blue.

-1.5 and 1.5 degrees isn’t very much. Is it possible you meant those without the math.rad?

You are only updating the variable and not changing the property

mouse.Move:Connect(function(direction)

		if isGliding == true then

			local Delta = UserInputService:GetMouseDelta()
			local Value = math.sign(Delta.X)
			local CurrentOrientation = self.CurrentOrientation
			local RootWaistC0 = Character.LowerTorso.Root.C0

			if Value > 0 then
				print("Right")
				 Character.LowerTorso.Root.C0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(-1.5))
			else
				print("Left")
				 Character.LowerTorso.Root.C0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(1.5))
			end
			
		end

	end)
1 Like

it getting multiplied not set to 1.5 and -1.5 though

that was it, man sry lol I can be so dumb sometimes.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.