#My Tween does not work.
1 messages · Page 1 of 1 (latest)
Didn't put enough into the tween info
Can you help me?
Are you having any errors
And make sure your part isn't already in that position and that size or close to it
AS your tween is 15 seconds it would change very slowly meaning if your part was 9,9,9 in size you would maybe barely notice the difference
besides that i don't see anything wrong unless you have any errors
Also
the size doesnt even change
Oh
wait
Lemme try again
Oh
the error was
not error
but problem
was that my part was already bigger than 10,10,10
@sly pewter
Ye
wait
but are Position and Size
roblox's properties?
or was it a name for variable?
those belong in the tweenInfo right?
@sly pewter
Also i am just learning tweenservice rn
What do the 3 parameters mean in Position?
The thing only moves in one direction regardless of what I put in position
They are properties of the part instance
X Y Z
Do you want it to move up no matter where it is
Or do you want it to move to a certain position
Okay i'm really bad at explaning so i'll try to explain then just give you the script
So when you set the position normally you are just moving it to a place in the workspace
So if your part is at 0,0,0
And you tween the position to 0,1,0
It will move upwards by 1
But if your part is at something like 3,2,5 (away from the centre of the world)
and you tween it to 0,1,0
it will just move back ye
i want it to be no matter where
So you need to get the current position of the part
and then ADD the vector you want to move it by
oh
So the part where you have position
You can make a variable first
what would i add
Called InitialPosition
local current = part.Vector3?
Just before goal
Ok
Yeah
inside the goal table
Yes
Best thing to do
Hope everything goes well for you
You mean other properties of the part that you can change
Yes there are a lot
ye
Do you have the explorer tab open
Yeah Color
Yes
ohh
you can see everything that is in there, if it makes sense to tween then you can
So what is the benefit of twening
in comparison
to
just doing x position plus 1 plus 1 over and over again
Well first off optimisation, and its the fact you can change multiple properties at once.
Tweening also has additional settings which would be much harder to do if you did it that way
For example you have tweenstyles (i think they are called that)
ohh
you can make it linear like it already is
or you can make it exponetial which starts of slow then builds up speed
or you could make it bounce into place
etc
Oh, well first you would need a coma when you add things to a table, but this isn't the correct way to do it
comma*
you would have to create another tween and different tween info
and then you put the wait inbetween the tweens
so do i just do another tweenInfo
yeah
but different local variablename?
o
yes
ok
ok
and then tween and tween1
so now this
or whatever is better for you
yeah
and a new goal yeah
** You are now Level 7! **
So i can call different goals
yes
wait what
so you would have to have them as normal variables
wait nevermind
continue what you were doing i dont want to confuse you
lemme send my code
but ill explain if you get it wrong
aight
change tween to tween1
you are setting the same goal
bruh
so they both do the same thing
Yeah but the more you make them the less you will make them in the future
wait
are you trying to make it
wait 3 seconds
between both tween1 and tween2
yeah dont add it in the table
Oh ok
that table is only for things you want to change
Ok
put it after tween1:Play()
they should both work thats weird
np
Yes
you wuld make to make different tween info for them
so you can do the same thing you did with the tweens
tweeninfo1
tweeninfo2
To be honest I don't really know
It's kinda of an on and off thing
But I'd say seriously for a year
And started like 4 years ago maybe
Oh alr
** You are now Level 7! **
you dont need to do that
except u want different time tweens
because you can tween every property of an part in just 1 tween
thats why its an table
He was doing that initially, I think he wanted them seperate