So I asked my friend if he could script it for me as I can’t really script, he agreed and scripted everything and I truly am thankful. But I’ve got an issue where it keeps reversing, I’ve asked if he could help me but I don’t want to cause any stress.
Here’s the script:
local ts = game:GetService(“TweenService”)
local completed = false
while wait(45) do
completed = not completed
if completed == true then
ts:Create(script.Parent, TweenInfo.new(45, Enum.EasingStyle.Linear), {Position = Vector3.new(168.952, 111.903, 926.994)}):Play()
else
ts:Create(script.Parent, TweenInfo.new(45, Enum.EasingStyle.Linear), {Position = Vector3.new(169.877, 112.828, -243.575)}):Play()
end
local ts = game:GetService(“TweenService”)
local completed = false
local info = TweenInfo.new(45, Enum.EasingStyle.Linear)
while wait(45) do
completed = not completed
if completed == true then
local tween = ts:Create(script.Parent, info, {Position = Vector3.new(168.952, 111.903, 926.994)})
tween:Play()
tween.Completed:Wait()
else
local tween = ts:Create(script.Parent, info, {Position = Vector3.new(169.877, 112.828, -243.575)})
tween:Play()
tween.Completed:Wait()
end
end
So it waits for it reach its destination and then wait 45 seconds