local A = ...
local a = A.Size
local b = B.Position
print(a)
print(b)
clickedButton:TweenSizeAndPosition(UDim2.new(1,0,1,0), UDim2.new(0.25, 0,0.25, 0))
wait(10)
clickedButton:TweenSizeAndPosition(UDim2.new(a), UDim2.new(b))
Why the TweenSizePosition is not working, the prints in the Code are printing the Number it has and then make it to a different Size and it should make it after 10 sec again to the normal Size and Position. It will just go to 0,0,0,0 on Size and Position.
Its the same if i remove “a” and “b” and put the number manually.
What is wrong?
robloxapp-20220716-0538566.wmv (5,6 MB)
is a something like, 0,0,0,0 (as ex) or what is a, define ur locals more for us pls
I updated my Text theres a Video u can see there what i mean
The Size is tweening to 0,0,0,0 and the Position to 0,0,0,0 but why is that happening?
We don’t have enough information to solve the problem. Are you making the button invisible instead of moving it offscreen?
No, u can see in the Video how it tweens to the 0,0,0,0 position at sec 35
That still doesn’t give me enough information. Is there any code at all that modifies the buttons besides this one? If so, present it to us.
I could show the other Codes but it does nothing, a Localscript is sending a RemoteEvent to this Localscript to activate the Buttons (Another Remote Event will not fire) and it runs the Code with the TweenSizeAndPosition. The Code i put is a Example i tried it in a new Place and it was the same just with the 8 Lines. U could try the 8 lines code the Same will happen
I still don’t have enough information. Will you please clarify somewhat if there’s anything else that changes the buttons? Your grammar makes it hard to understand.
No nothing else is changing the Buttons just the Codes above
Try printing a and b after the first tween. Does it change?
It would not because the Size cant change, but it worked this time after i put the Number manually the second Time, i will check why it dont worked with the a and b.
I found it out, the a and b is saving the Size and Position like that: Size: {n.nnn, n},{n.nnn, n} Position: {n.nnn, n},{n.nnn, n}
But it should saved like that: Size: n.nnn, n,n.nnn, nPosition: n.nnn, n,n.nnn, n
Thanks for ur help and i have a last Question do u know how to remove the “{ }”?
That’s intended, as it is a paired table as {scale, offset}. You can’t remove it.
1 Like