Analog clock not working at every rotation

while truthfully, i only need the Y axis rotation working, here the clock’s hands are just bugging out and usually rotating outside the intended boundaries of the clock face
(snippet of code)

	local hourDeg   = (hours * 30) + (minutes * 0.5) + (seconds * (0.5 / 60))
	local minuteDeg = (minutes * 6) + (seconds * 0.1)
	local secondDeg = (seconds * 6)
	
	local hourRad   = math.rad(hourDeg)
	local minuteRad = math.rad(minuteDeg)
	local secondRad = math.rad(secondDeg)
	
	local center = v.Center.CFrame

	local faceNormal = center.RightVector

	local hourRot   = CFrame.fromAxisAngle(faceNormal, -hourRad)
	local minuteRot = CFrame.fromAxisAngle(faceNormal, -minuteRad)
	local secondRot = CFrame.fromAxisAngle(faceNormal, -secondRad)
	
	v.HourHand.CFrame   = center * hourRot   * CFrame.new(0, 0.8/2, 0)
	v.MinuteHand.CFrame = center * minuteRot * CFrame.new(0, 1.2/2, 0)
	v.SecondHand.CFrame = center * secondRot * CFrame.new(0, 1.19/2, 0)

fixed8&(*(&&$DD30characterssss

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