Menu UI | Scripting

Hello!
As most of you know, I’m currently working on my Menu UI and I’m now coming onto the scripting part of it.

I’m currently making a UI to open the menu, but I have no clue on how to script it. I see it in many games where you would click a “gamepasses” button and it would open.

Any help would be appreciated, thanks!

So just to clarify you want a button that you can only use if you own a gamepass?

Maybe your talking about Developer Products?

I can send an example of what I need, it seems confusing now reading it.

1 Like

ezgif.com-gif-maker (1)
This is something I want it to look like, so I would click the button and the menu would open. (Sorry for the low quality on the GIF.)

Oh, so you want a button where you can purchase a gamepass, or just a menu button, or both?

It want it so when you click the button, it will open the Menu UI.

I think you’re in need of TweenService.

Here is an example script:

local object = script.Parent
 
wait(2)
 
object:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad) 

Parameters

Here are the parameters for: GuiObject:TweenPosition()

Name Type Default Description
endPosition UDim2 Where the GUI should move to
easingDirection EasingDirection Out The direction in which to ease the GUI to the endPosition
easingStyle EasingStyle Quad The style in which to ease the GUI to the endPosition
time float 1 How long, in seconds, the tween should take to complete
override bool false Whether the tween will override an in-progress tween
callback Function nil A callback function to execute when the tween completes

Returns

Here is what: GuiObject:TweenPosition() will return.

Return Type Summary
bool Whether the tween will play
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.