What math.? returns Z

I want to know what math.??? returns Z axis.
Like math.cos/sin returns y and X but i looked into it what value returns the Z axis.
I have done some research but could not find anything.

local bobbelX = math.cos(tick() * 10) * 0.25
			local bobbelY = math.abs(math.sin(tick() * 2)) * 0.25
			local bobbelZ = math.rad(tick() * 1) * 0.25
			local bobble = Vector3.new(bobbelX,bobbelY,0-)
			Camera.CFrame = Camera.CFrame:ToWorldSpace(CFrame.new(bobble))
1 Like

There is none, and it depends on what direction your axis is facing, you’ll use either cos or sin.

If you’re making a bobble script (presumably for camera), You can just use the same functions, of your choice.

2 Likes

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