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

[SOLVED] Tweening rotates cylinder CFrame issue?

Asked by 5 years ago
Edited 5 years ago
local eSize = Vector3.new(20.3, 0.34, 0.68)
local ePos = CFrame.new(Beam.CFrame.X, Beam.CFrame.Y, Beam.CFrame.Z + 10.125)

local info = TweenInfo.new(
    0.2,
    Enum.EasingStyle.Quad,
    Enum.EasingDirection.InOut,
    0,
    false
)

local partRe = {
    Size = eSize,
    CFrame = ePos
}

local tw = ts:Create(Beam, info, partRe)
wait(0.4)
tw:Play()

The CFrame works fine and so does the size, but the main problem is is that it rotates the cylinder 90 degrees so it's facing the wrong way, I have tried tweening the rotation but it does nothing Any help would be appreciated

EDIT > Admin please lock

0
If I'm not mistaken, multiplying a CFrame * CFrame.Angles(0,math.pi/2,0) will place the object with an orientation of 0,0,0 ABK2017 406 — 5y
0
Thank you User#16405 0 — 5y

Answer this question