Moving Platform Script
Customize your variables, then fill in the blanks!
Your Custom Settings
Script (inside the moving platform)
This script makes a platform move back and forth using TweenService. Make sure the part is Anchored!
local TweenService = game:("TweenService")
local platform = script.
local startPos = platform.
local endPos = startPos + .new(0, 0, 20)
local tweenInfo = .new(
2,
Enum.EasingStyle.,
Enum.EasingDirection.InOut,
-1,
true
)
local tween = TweenService:(platform, tweenInfo, {Position = endPos})
tween:()
