#why this won't work?
63 messages · Page 1 of 1 (latest)
is the tween2 not playing at all?
do you want the code ?
local tweenservice = game:GetService("TweenService")
local movingplatform = workspace:WaitForChild("movingplatform")
local pos1 = workspace:WaitForChild("movingpart11")
local pos2 = workspace:WaitForChild("movingpart22")
local info = TweenInfo.new(4,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,2.5)
local tween = tweenservice:Create(movingplatform,info,{CFrame=pos1.CFrame})
local tween2 = tweenservice:Create(movingplatform,info,{CFrame=pos2.CFrame})
task.wait(2.5)
tween:Play()
task.wait(5)
tween2:Play()
thx
what do you want make with it
is it like
moving platform
to one position then to back?
answer!!!
:(
while true do
tween:Play()
task.wait(5)
tween2:Play()
task.wait(5)
end
Ok
go to a position wait 5 sec go back wait 5 sec repeat inf
ok
so reverse cannot be used cause it don't stop
i think
is the position variables in the right spot?
just to be sure pos1 isnt where you are starting
should be the other way around, or play tween2, then tween1
the problem is that you are playing tween 1 first and it is setting itself to its starting position
so it isnt moving
other than that everything else works
local tweenservice = game:GetService("TweenService")
local movingplatform = workspace:WaitForChild("movingplatform")
local pos1 = workspace:WaitForChild("movingpart11")
local pos2 = workspace:WaitForChild("movingpart22")
local info = TweenInfo.new(4,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,2.5)
local tween = tweenservice:Create(movingplatform,info,{CFrame=pos1.CFrame})
local tween2 = tweenservice:Create(movingplatform,info,{CFrame=pos2.CFrame})
task.wait(2.5)
tween2:Play()-- just swap the two tweens
task.wait(5)
tween:Play()
make tween 2 play first, then 1
i did it
does it work?
but it stop early
as in its not making the full trip to pos2?
or other way around
maybe task.wait(5) is not enough? frfr
yes
6.5
yay this work
sick
now i will do a while loop
also
btw
you could just use
tween.Completed:Wait()
instead of task.wait()
oh wait
nvm
u waiting 5 secs
while true do
tween2:Play()
task.wait(6.5)
tween:Play()
task.wait(6.5)
end
** You are now Level 4! **