so from my discoveries as the title says i cannot use fromEulerAnglesXYZ on the client at all every script that i have tried it on has just basically ignored the entire line, could anyone help me out on this to find another method?

LocalScript:

local Lights = script.Parent.Lights:GetChildren()
local RunService = game:GetService("RunService")

RunService.RenderStepped:Connect(function(step)
	for i = 1,170 do
			wait()
			for i,Light in pairs(Lights) do
			Light:SetPrimaryPartCFrame(Light.PrimaryPart.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.01))
		end
		wait()
	end
	for i = 1,170 do
			wait()
			for i,Light in pairs(Lights) do
			Light:SetPrimaryPartCFrame(Light.PrimaryPart.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-0.01))
		end
		wait()
	end
	wait(30)
end)