@@SuryaTheBeast I made a video about this so if you need extra help you can watch it. Warning : I never made it for entertaining purposes so you might not find it very interesting
You are the best! I have been looking for "Tween" videos to help me all over the internet, but they all overdid it and explained it like I was a professional. Yet you stood out explaining it in a beginner way and did not over script the "Tween". Thank you.
SO helpful man. Just followed along with this and updated all of my GUI's to tween in and out. Worked perfectly. I really appreciate the explanation of everything you're doing. Thanks much!
i followed every tutorials you made, from only to print to GUI's, now i can make games solo instead of watching how to make them on youtube, you are amazing man, you earnt a sub
For some reason I was like really scared of how complicated looking gui tweening is and had to always do stupid loops and stuff to pull it off, but now its like those toys where you put the shapes in the holes, weird comparison but you get the point, thx.
This is an awesome video! I used my own self-learned knowledge of GUI’s and put the knowledge from this video with it, and my GUI’s look sooo much better. Thanks Dev King
One nice thing about these tutorials is he actually talks in a way so you know he knows what he's doing, and it doesn't sound like he just got this from another tutorial. You just earned a new subscriber! Oh wait actually it doesn't work? Here is my script: local Inventory = script.Parent.Inventory local OpenInventory = script.Parent.OpenInventory OpenInventory.MouseButton1Up:Connect(function() -- Open inventory Inventory.TweenPosition( UDim2.new(0.337, 0, 0.254, 0), -- End Position "InOut", -- Easing Direction "Elastic", -- Easing Style .5, -- Time in Seconds true, -- Override any other tweens ) end)
Thanks so much! You are literally the best coding helper of all Roblox Developing Community! You are amazing! Thanks so much, OMG Idk How can I thank you more. You are amazing keep the amazing work up!!!
@@timekeeper3767 So basically you use game:GetService if the Service doesn't exist yet, that's what I know As an Example If You want to get a Frame from the StarterGUI You type : local frame = game.StarterGUI.ScreenGui:GetService("Frame")
I’m working n a game with 2 friends right now, we’ve been going for about a month now, I used to watch AlvinBlox, but I stopped for a few reasons, 1 being his voice was annoying lol and he just didn’t explain things in a way I understood. This is the second video I watched from you and I’m gonna show this to my friends right now. Keep doing you.
the second thing about AlvinBLOX I agree with but the first thing just doesn't make any sense, it's PUBERTY, little harsh if you think about it, but anyways good luck on your game!
G'day, here is a solution, 1. Check the ouput if there is a mistake. 1.1 If there is no mistake go ahead 1.2 If there is a mistake fix it and try again 2. Make sure the UDim2 is the position were the GUI will end falling down
"My typing isn't that loud" 0:57: the typing Also there is a more efficient way to do this, for example: if you want it to play when you first enter in and if you want it to play when you return to that gui section, you could save the entire tween and make it play
Hey! I'm pretty new to coding and all and I could use your help! How do you possibly close the gui? For example, you click the button and then when your done with whatever is inside you click the button again and it closes. Could you help me make that? Thanks!
Hey so when I write the parameters for the tween service roblox gives me an error saying "Unable to cast bool to token" at the line with "nil" I've put all parameters in TweenSizeAndPosition so I don't know what to do.
You are really helpful i am learning scripting and i need help on its functions and you've done a great job of teaching me what they do and what they are, PS: I Subscribe. But Anyways I just needed the script but i know how tweenservice works and thank you
but some people don't know how tweenservice works, also it's a simular situation to AlvinBLOX, that he works hard to make his videos but people can just go to the video for 5 seconds and copy all the code and leave, which he doesn't want, so AlvinBLOX locks the code behind a paywall (which really is neccessary)
Hello @joesmithgaming1886 it has been 4 years since you posted this comment. How are you doing in live and have you ever figured out an answer to your question.
when i have a screen gui and in the editing window it looks all fine, but when i go in game the screengui gets pulled down a bit, and i didnt change the screen/window position
yeahh it was going fine until i started getting a error at my time local object = script.Parent wait(2) object:TweenPosition( UDim2.new(0.319, 0, 0.379, 0) "Out" "Quad" 1, --The Time false
@@a_devgames3430local Inventory = script.Parent.Inventory local OpenInventory = script.Parent.OpenInventory OpenInventory.MouseButton1Up:Connect(function() -- Open inventory
Inventory:TweenPosition( UDim2.new(0.204, 0, 0.222, 0), -- End Position "Out", -- Easing Direction "Bounce", -- Easing Style 1, -- Time in seconds false -- Override any other tweens ) end) wont work for me
Im sure you get lots of questions over and over so im sorry for asking this but if you have time may you make a video or reply how to make a close tween gui so the gui does not stay on your screen
@@teasippingbrit it doesnt work it gives me an error on UDim2 my script: local StoreFrame = script.Parent.Parent.Store script.Parent.MouseLeave:Connect(function() StoreFrame:TweenPosition( UDim2.new(-0, 0,0.407, 0), "In", "Quad", 1, false ) end)
Gaming On Point you need to get tween service first and you need to actually execute the tween, your just giving the game info it doesn’t have any use for
Would it work for the same button to open and close the manu via callback? Edit: I got it to work now. Callback wouldn't work at all, but I made a script with "local clicked = false" and some functions: "OnOpen" and "OnClosed"
hey dev is there any way to make it so when you tween a position, it only works once but I want it to tween every time someone clicks on it, any answers?
8:19 It;'s actually "InOut" instead of "OutIn" for those who are confused.
Edit: Wow, this is the most likes I’ve ever gotten! Thx!
u sure?
Yes.
no wonder ma code didnt work
thx
i am recently learning the GUI things like these, so you are giving me a boost
I don't recommend you head straight to this, you'll get confused with everything else(coming from a hired developer from a fps)
If you guys wanna learn how to scale on all devices manually here, I explain it on a devforum:
devforum.roblox.com/t/help-gui-scaling/584323/8
@@shinyow Great post!
@@SuryaTheBeast I made a video about this so if you need extra help you can watch it. Warning : I never made it for entertaining purposes so you might not find it very interesting
@@axlerod8982 I agree but I'm not confused so at the same time I don't agree
I swear this man is underrated. I got just what I wanted lol.
agree
You are the best! I have been looking for "Tween" videos to help me all over the internet, but they all overdid it and explained it like I was a professional. Yet you stood out explaining it in a beginner way and did not over script the "Tween". Thank you.
SO helpful man. Just followed along with this and updated all of my GUI's to tween in and out. Worked perfectly. I really appreciate the explanation of everything you're doing. Thanks much!
Can I see your script because I have been trying to get this to work for a very long time and I cant get it to tween out of my screen
@@Pxr3sn just do a end position that is out of your screen (i recommand offset if you are gonna do mobile things etc)
0:24
"First of all, leave a like"
It was the tone of voice that gave me the overwhelming urge to like the video
every tutorial I've watched from you has worked and explained how it worked, these were thing I didn't know and I'm almost a two year veteran.
lol everytime he laughs im motivated to even make more games lol
Me too, everytime that i think in making a game, he laughs:(
Sheesh
@@mack3009 Sad.
Same but when i realized how hard it is. I cried myself to sleep
@@trr9671 Hey never think that its hard always believe yourself and try you bes I believe you can do it 🥰
i followed every tutorials you made, from only to print to GUI's, now i can make games solo instead of watching how to make them on youtube, you are amazing man, you earnt a sub
I am working for someone making GUI for his game, your videos really help and I hope you continue for years to come!
It's like when I experience a New Cool thing, I get so Excited.
For some reason I was like really scared of how complicated looking gui tweening is and had to always do stupid loops and stuff to pull it off, but now its like those toys where you put the shapes in the holes, weird comparison but you get the point, thx.
dude this video was so simple to follow and it worked great. Earned a sub!
This is an awesome video! I used my own self-learned knowledge of GUI’s and put the knowledge from this video with it, and my GUI’s look sooo much better. Thanks Dev King
actually really useful video, you explained it very well and I can actually see how I can develop my project with this new knowledge, massive thanks
One nice thing about these tutorials is he actually talks in a way so you know he knows what he's doing, and it doesn't sound like he just got this from another tutorial. You just earned a new subscriber!
Oh wait actually it doesn't work? Here is my script:
local Inventory = script.Parent.Inventory
local OpenInventory = script.Parent.OpenInventory
OpenInventory.MouseButton1Up:Connect(function()
-- Open inventory
Inventory.TweenPosition(
UDim2.new(0.337, 0, 0.254, 0), -- End Position
"InOut", -- Easing Direction
"Elastic", -- Easing Style
.5, -- Time in Seconds
true, -- Override any other tweens
)
end)
i have no idea why it breaks
dont put comma at the end. Sry for the late reply though
Also it's better to do activated for it works on mobile as well
i love how at the end of the description i always remember making a one piece game
Great video! I had a few errors but I looked on the wiki and fixed them! thanks a lot!
I actually love your reaction your voice and laugh They're so good thank you for this it didn't work don't know why but love your vids
i thought it was going to be harder, but its actually pretty simple afterall! tysm for the tutorial
Thanks so much! You are literally the best coding helper of all Roblox Developing Community! You are amazing! Thanks so much, OMG Idk How can I thank you more. You are amazing keep the amazing work up!!!
i love listening to this guy talk
I've learnt from another developer that you can use the actual tweenservice to tween GUIs not GUI:TweenPosition(etc)
That’s what I’ve been doing from the start. Haven’t had any issues.
Is the getservice method less efficient or does it come down to preference if both are identical?
@@timekeeper3767 Getservice is getting the service. If you change the name of the service it will act like nothing has changed
@@timekeeper3767 game. Service uses the name in the explorer
@@timekeeper3767 So basically you use game:GetService if the Service doesn't exist yet, that's what I know
As an Example If You want to get a Frame from the StarterGUI You type : local frame = game.StarterGUI.ScreenGui:GetService("Frame")
I’m working n a game with 2 friends right now, we’ve been going for about a month now, I used to watch AlvinBlox, but I stopped for a few reasons, 1 being his voice was annoying lol and he just didn’t explain things in a way I understood. This is the second video I watched from you and I’m gonna show this to my friends right now. Keep doing you.
bruh i hope your game flops
SeaDrown Thanks for the compliment 😁
@@g.geargy1736 Well I hope your game takes off!I wish you luck
the second thing about AlvinBLOX I agree with but the first thing just doesn't make any sense, it's PUBERTY, little harsh if you think about it, but anyways good luck on your game!
@@seadrown6252 Bruh.
Thx Dev just subbed!! I have a question. How do you make it close using the not option that you would use without tween? Plz Respond!
Tysm for this! I made a exit button and sat in studio for an hour opening and closing it lol ty
How did you make it close? What was the script you used?
@@Pxr3sn not completely sure bc that was a while ago tho I’m guessing it was just another button that tween it to a new spot off the screen.
@@cosmic1857 yeah probably
"ok first of all we do, *chuckle* leave a like then,"
breh i already left a like before i clicked on video ;-;
Thanks, man! Helped a lot making some script builder UI! It looks sooo smooth!!
amazing i feel so uplifted...A tutorial which works
Straight to the point. Thank you so much.
Dev king is WAYYYYYYYYYYYY better at explaining this stuff than legit anyone
I always wondered how to make an animated gui but thx to you I now know how
I finally learnt something today.
what do i do if i want it to go back to its starter position after that?
and if i want to put it in the same script if its possible
Super helpful video, really helping me to polish my game up. Thanks!!
How do we make a function after the false for CallBack?
it doesnt work for me everytime, every single dang time i try to tween the game doesnt let me. WHAT DID I DO WHYYYYY
G'day, here is a solution,
1. Check the ouput if there is a mistake.
1.1 If there is no mistake go ahead
1.2 If there is a mistake fix it and try again
2. Make sure the UDim2 is the position were the GUI will end falling down
Maybe you 100% follow the video script, but the screen Gui name is different. So its will not working
Or maybe you forgot to add "," after "UDim2.new (1234, 123,3 ,345234,423),"
"My typing isn't that loud"
0:57: the typing
Also there is a more efficient way to do this, for example: if you want it to play when you first enter in and if you want it to play when you return to that gui section, you could save the entire tween and make it play
the best youtuber ever!
My dream has come true! TYSM!!!!!!! I'm sharing this video!
Hey! I'm pretty new to coding and all and I could use your help! How do you possibly close the gui? For example, you click the button and then when your done with whatever is inside you click the button again and it closes. Could you help me make that? Thanks!
So satisfying😭
Nice video as usual !
Hey so when I write the parameters for the tween service roblox gives me an error saying "Unable to cast bool to token" at the line with "nil" I've put all parameters in TweenSizeAndPosition so I don't know what to do.
read the wiki
roblox add something to tween service
Make sure you have commas where there supposed to go
I watch all of you GUI tutorial. Thank you! Cause of you help me, 1 sub added
You are really helpful i am learning scripting and i need help on its functions and you've done a great job of teaching me what they do and what they are, PS: I Subscribe. But Anyways I just needed the script but i know how tweenservice works and thank you
but some people don't know how tweenservice works, also it's a simular situation to AlvinBLOX, that he works hard to make his videos but people can just go to the video for 5 seconds and copy all the code and leave, which he doesn't want, so AlvinBLOX locks the code behind a paywall (which really is neccessary)
OMG THANK YOU SO MUCH YOU ARE SO UNDERATED!
6:47 what tutorials do you explain these?
Vector 3 is very easy to learn, it's simply just X Y and Z, the reason why there is Vector 2 for GUI is because there is only 2 Vectors.
thx alot now I can make a gui shop for my games
1:37 when reality sets in 😭
Thank you so much for this video this really helped me!
how do i make it so when i re-click the button it closes the menu
Wow thank you, this is so helpful
thx so much dev, this really helped
Can you make a video on how to make a combat and block system?
Or a r6 ragdoll script tutorial
your fucking stupid then if you dont understand that
@Fake Fedora dont need to be so harsh, some people don’t know how to script
@@fakefedora8104 Nobody is born with the knowledge of how to script on Roblox. No need to be a jackass.
alvinblox: uploads like once a month. devking: THIS IS MY CHANCE TO RULE THE DEVS ONCE AGAIN
so youre saying alvin bloxx is worse? Alvin blox has stuff to do. He cant always post.
@@HeiPriince what no im not saying dev king or alvin is better im saying that alvin doesn't post a lot
How do you tween back while using the same button?
I think using the "In" instead of out, tell me if I'm right
Yeah
@@jerry429 no
this is rushed sorry but
local On = false
if gui is activated then
if on then
tween 10,10
on = false
else
tween to 0,0
on = true
end
end)
This man is as underrates as gamerm8
so simple yet so helpful
thats all good but how to make it go back up
How do I close it?
Hello @joesmithgaming1886 it has been 4 years since you posted this comment. How are you doing in live and have you ever figured out an answer to your question.
Why are there so many people asking how to close the GUI?
Just make another tween moving it off screen
see, i tried that
This guys helps me alot I'm making a roblox game
Truly a god..
ok but like, how tf do I close it now??? xD good vid tho, I learnt a lot.
hey TheDevKing! i got a question. will you tell me you to make traingle gui's like this?
i just wanted to skip to the end to see the results but i usually just enable the gui when the open button is clicked
Thx for making this video for my Spider-Man game
9:58
Good ol' voice crack lol
lol
when i have a screen gui and in the editing window it looks all fine, but when i go in game the screengui gets pulled down a bit, and i didnt change the screen/window position
I checked again and again and again I dont see why I'm still getting an error.
You're probably putting "OutIn" instead of "InOut"
ima use quart
How do you make a it close back out?
my tween didnt move and i did everything you said help
uhh HELP
yeahh it was going fine until i started getting a error at my time
local object = script.Parent
wait(2)
object:TweenPosition(
UDim2.new(0.319, 0, 0.379, 0)
"Out"
"Quad"
1, --The Time
false
)
end)
needs to be a comma at the end of the brackets
UDim2.new(0.319, 0, 0.379, 0),
local object = script.Parent
wait(2)
object:TweenPosition(
UDim2.new(0.319, 0, 0.379, 0)
,
"Out"
"Quad"
1, --The Time
false
)
Each one needs a comma. That’s how you separate them
The tween won’t work for me for some reason
same here
Paste ur script here. Also make sure its the right button
@@a_devgames3430local Inventory = script.Parent.Inventory
local OpenInventory = script.Parent.OpenInventory
OpenInventory.MouseButton1Up:Connect(function()
-- Open inventory
Inventory:TweenPosition(
UDim2.new(0.204, 0, 0.222, 0), -- End Position
"Out", -- Easing Direction
"Bounce", -- Easing Style
1, -- Time in seconds
false -- Override any other tweens
)
end) wont work for me
@@user-wm4ck4el7p your supposed to do mousebutton1down
Im sure you get lots of questions over and over so im sorry for asking this but if you have time may you make a video or reply how to make a close tween gui so the gui does not stay on your screen
An easy way would be to do the same thing but make the position the old position and add something to check if the gui is open or closed
thx great vid i liked
im watching this again for the 9th time. still cant do it without the video
Hey bro tysm i know how ti script now very cool
How to tween back?
Just make another tween moving the GUI back to where it needs to go
For me my favorite easing style is back
how would you close the GUI?
You would put a localscript in the open button and instead of "out" do "in".
@@teasippingbrit it doesnt work it gives me an error on UDim2
my script:
local StoreFrame = script.Parent.Parent.Store
script.Parent.MouseLeave:Connect(function()
StoreFrame:TweenPosition(
UDim2.new(-0, 0,0.407, 0),
"In",
"Quad",
1,
false
)
end)
Gaming On Point you need to get tween service first and you need to actually execute the tween, your just giving the game info it doesn’t have any use for
I can’t give your the script rn sorry
To anyone getting a string error, make sure you are using 'TweenPosition' and not 'TweenSizeAndPosition'
it didnt work. can you help a little more i tried many thing and it didnt work
Would it work for the same button to open and close the manu via callback? Edit: I got it to work now. Callback wouldn't work at all, but I made a script with "local clicked = false" and some functions: "OnOpen" and "OnClosed"
How do I make it go back to normal position once the toggle button is clicked again?
Bro violated Every english teacher in EXISTENCE:
15:01-15:11
Mr. bubz approves of this tutorial
Why mine is not working?I already did everything
The function always goes after the tween. How do I make the thing true and then do the tween?
Why is it that when my my gui pops up like this and i click my premade exit button and try it again it doesnt do the popping up animation again
What do you use to record?
This video is very useful! Thanks! However it would help me even more if you tell me how to make the GUIs bounce
Just change the easing style to Bounce
didnt work bcuz for some reason it says the ")" at line 13 is invalid. any way to fix this?
If you want to tween back, will you just adjust the parameters back to the original place?
☰GamingBassFlow☰ yeah you do
Do you know how to when I press the button it enables or disables a gui?
I thought tweens were hard until i watched this.
hey dev is there any way to make it so when you tween a position, it only works once but I want it to tween every time someone clicks on it, any answers?
bools, yeh
ez
KolKidGamer
Nice, dude. This is really nice.
Your Voice is Like Poke
All the dislikes are skids who think that "he didn't explain it well!!1" or "Ill just take it from the dev forum, it isn't skidding then!!!"
bro i tried it didnt work