Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you create a dropdown change team GUI?

Asked by 4 years ago

I've been trying to create a dropdown change team GUI for my new game. I've followed tutorials and tried lots of ways of how to make a change team GUI. I can do a change team GUI, but I want a dropdown GUI so it doesn't use the space of the screen up. I tried to mix them together and change the coding, but it doesn't work. I'm really confused. I also accidentally deleted my scripts, and now I'm very confused.

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Read up on TweenPosition here. TweenPosition allows you to smoothly move a piece of Gui as seen here. It's just a matter of changing the different values, and hooking it up to a TextButton

GUI:TweenPosition(UDim2.new(1, 0, 1, 0)) --(Taken from the wiki)

First, you must make a GUI variable. To do so you'd typically do something like local GUI = script.Parent.FrameToMove Then, you must find the position property of the FrameToMove and put that into the code above. Then you must figure out what axis you want to move the FrameToMove. Lastly, you'll need to connect a function to this.

If this helped, be sure to accept my answer!

Ad

Answer this question