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

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

Asked by 3 years 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 = BrickColor.new("Neon orange")
        fire.Anchored = true
        fire.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(1,-1,1) * CFrame.Angles()

Any help would be appreciated. Thank you.

1 answer

Log in to vote
0
Answered by 3 years 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)

Ad

Answer this question