Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

fromEulerAnglesXYZ Not Working On The Client?

Asked by
Donut792 216 Moderation Voter
4 years ago

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)

Answer this question