Rotate on z axis c++

So i am completely new to unreal engine and have just started to learn the C++ needed, however i am currently making a robotic arm in my unreal space and while i have the rotation on the x and y axis down, the z axis wont work. what’s the changes i need to make for the z axis rotation?

just realized i sent the wrong photo…sorry

Rotation around the z axis (up/down axis) is called Yaw. It’s a member variable of FRotator:

I’m not clear on what you mean by it’s not working. What do you observe and what do you expect?