I’m new to scripting and i made a moving part cycle but i want to know if there’s anyway to get the player to stay on the moving part without falling off/moving.
-Here’s The Script
local MovingPart = game.Workspace.MovingPart
local TweenService = game:GetService(“TweenService”)
while true do
local goal = {}
goal.Position = Vector3.new(70.359, 0.5, -118.235)
local tweenInfo = TweenInfo.new(4)
local tween = TweenService:Create(MovingPart, tweenInfo, goal)
tween:Play()
task.wait(4)
local goal2 = {}
goal2.Position = Vector3.new(70.359, 0.5, -88.735)
local tween2 = TweenService:Create(MovingPart, tweenInfo, goal2)
tween2:Play()
task.wait(4)
local goal3 = {}
goal3.Position = Vector3.new(98.359, 0.5, -88.735)
local tween3 = TweenService:Create(MovingPart, tweenInfo, goal3)
tween3:Play()
task.wait(4)
goal4 = {}
goal4.Position = Vector3.new(98.359, 0.5, -118.235)
local tween4 = TweenService:Create(MovingPart, tweenInfo, goal4)
tween4:Play()
task.wait(4)
end
