I want to know how to make gui like this
https://gyazo.com/10028614bd5b60ab7f8e82e3c06f6f37
I wanna to know how to make number go up and down like that
I tried using the uilistlayout but i turn out like this
So yeah i hope you guys can help me
I want to know how to make gui like this
https://gyazo.com/10028614bd5b60ab7f8e82e3c06f6f37
I wanna to know how to make number go up and down like that
I tried using the uilistlayout but i turn out like this
There was this tutorial from long ago which achieves a somewhat similar effect:
Basically, have two frames, one at the top and one at the middle. Simply, tween the top one to the middleâs position and the middle out of the way, and teleport it back up. If you want to make it look more ârandomâ, add a TextLabel inside the frame and randomize itâs position inside the frame. Donât forget to select âIgnoreGUIInsetâ in the main frame holder (the one that the two moving frames will bein) so that the âout of boundsâ text will not be shown.
You can use Udim2 and TweenPosition
You can just use one textlabel and clone it!
It could look like this:
local NumberText = [Your textlabel] --You should change the textlabel's text to 0 first
local Number = 1
repeat --You can change this to however you want it to trigger
wait(1)
NumberText.Text = Number
NumberText:Clone():TweenPosition(Udim2.new(0,0,0,0), Out, Bounce, 0)
--TweenPosition goes like this: End position, Easing direction, Easing Style, Time, Override (unnecessary), Callback (unnecessary)
Number = Number + 1
until Number == 11
You may configure the TweenPosition as you like (and you can also remove the time, ease direction and style).
Hope this is what you were looking for!
EDIT: If you want it to move to a random X position like shown in the video you can use math.random
Something like this:
udim2.new(0+(math.random(1,5)/10),0,0,0)
i tried this out and it gave me this eror
âCan only tween objects in the workspace
How can i fix it?
Can you show me what you wrote in your script?
Here
local NumberText = script.Parent:WaitForChild("TextLabel")
local Number = 1
repeat --You can change this to however you want it to trigger
wait(1)
NumberText.Text = Number
NumberText:Clone():TweenPosition(UDim2.new(0,0,0,0), "Out", "Bounce", 1)
--TweenPosition goes like this: End position, Easing direction, Easing Style, Time, Override (unnecessary), Callback (unnecessary)
Number = Number + 1
until Number == 11```
My bad, I made a typo.
In âeasing directionâ and âeasing styleâ use enum
Enum.EasingDirection.Out
Enum.EasingStlye.Bounce
Itâs still giving me the same eror
Hereâs what i wrote
local NumberText = script.Parent:WaitForChild("TextLabel")
local Number = 1
repeat --You can change this to however you want it to trigger
wait(1)
NumberText.Text = Number
NumberText:Clone():TweenPosition(UDim2.new(0,0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Back, 1)
--TweenPosition goes like this: End position, Easing direction, Easing Style, Time, Override (unnecessary), Callback (unnecessary)
Number = Number + 1
until Number == 11
I canât figure out why this error occurs.
I found out the textlabel wonât appear when you clone it so maybe thatâs the problem.
Try @Batimiusâs way!
Wow it worked! Thank you very much!