|
| 02 Jun 2017 10:29 PM |
So apparently when CFraming a group of objects using TweenService, every tweened part loses its Orientation (defaults back to 0, 0, 0)
This is super frustrating. Is there any way to fix this?
for _, part in pairs(workspace.StatueBase:GetChildren()) do local pg = { CFrame = CFrame.new(part.CFrame.X, part.CFrame.Y, part.CFrame.Z) } local tween = TweenService:Create(part, ti, pg) tween:Play() end |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jun 2017 06:58 PM |
Full script:
local TweenService = game:GetService("TweenService") local t = TweenInfo.new( 2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0 )
for _, part in pairs(workspace.Statue:GetChildren()) do local p = { CFrame = CFrame.new(part.CFrame.X, part.CFrame.Y + 50, part.CFrame.Z) } local tween = TweenService:Create(part, t, p) tween:Play() end
Assuming the parts rotate back to (0, 0, 0) since I'm messing with CFrame. |
|
|
| Report Abuse |
|
|
| |
|
Exovis
|
  |
| Joined: 08 Jan 2015 |
| Total Posts: 1027 |
|
|
| 03 Jun 2017 07:08 PM |
heck i don't table but
you could just store the rotation before you tween it then set the rotation right after u tween it |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2017 07:16 PM |
'you could just store the rotation before you tween it then set the rotation right after u tween it'
That actually doesn't work. And that frustrates me so damn much |
|
|
| Report Abuse |
|
|
V0xels
|
  |
| Joined: 30 Mar 2012 |
| Total Posts: 2072 |
|
| |
|