Log in to vote

How can I flip a part over with CFrame.Angles?

Asked by 1 year ago

I am trying to spawn in a cloned part from replicated storage, but it is spawning upside down.H How can I flip it?

    local RP = game:GetService("ReplicatedStorage")
    local character = player.Character or player.CharacterAdded:wait()
        local fire = RP.effects.shockyshockwave:Clone()
        fire.Parent = workspace
        fire.BrickColor ="Neon orange")
        fire.Anchored = true
        fire.CFrame = character.HumanoidRootPart.CFrame *,-1,1) * CFrame.Angles()

Any help would be appreciated. Thank you.

1 answer

Log in to vote
Answered by 1 year ago

you need to put numbers inside of CFrame.Angles() im not sure the exact rotation, but test it out. It requires 3 radians that represent the X,Y,Z rotation, but u can enter degrees by surrounding it with math.rad()

maybe CFrame.Angles(0, math.rad(90), 0)


Answer this question