I made a wave, which needs to be turned 90 degrees in order to line up with the rest of the wave. I made all parts in a CFrame animation, but the wave keeps turning back to its original (0,0,0) orientation. I tried the following script, which didn't work...
local Orientation = Vector3.new(90,0,0) for i = 1,1000 do wait(.01) Tsunami.CFrame = CFrame.new(StartPosition,Orientation) + Vector3.new(0,0,i*-5,0,0,0) end
Hi Zuru,
part.CFrame = part.CFrame * CFrame.Angles(math.rad(90), 0, 0);
Thanks,
Best regards,
~~ KingLoneCat
Use TweenService, this gives help to any object, commonly used to animate.
local t = game:GetService("TweenService") --do the function? local goal = {} --Don't forget, add this to your code/script! goal.CFrame = CFrame.new(POSITION,OF,CFRAME) local Tsunami = game.Workspace.PARTNAME Tsunami.CFrame = Tsunami.CFrame local tween = t:Create(Tsunami, TweenInfo.new(2), goal) tween:Play() end
Comment below for any errors.