I have a tween function script and I am looking to use it as a platform moving upward. How do I change the axis of which it moves?
platform = script.Parent
local TweenService = game:GetService("TweenService")
local TweenInfo = TweenInfo.new(3,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local platformMove = {CFrame = platform.CFrame + platform.CFrame.lookVector * 8}
local openFunction = TweenService:Create(platform,TweenInfo,platformMove)
openFunction:Play()

1 comment
might have made it a bit over complicated, but this is how i do it.