How to make a GUI which closes a popup GUI

Опубликовано: 27 Апрель 2026
на канале: elvinerik
44
1

The name is intimidating, I understand that. That's why you gotta watch the video to understand the concept more. Here is a short introduction before the video: If a store menu pops up, when you click a buttonGUI and there is no X button what are you gonna do?! Well, this video helps you by showing you how to make an X button.

Make sure to subscribe, and like this video. Comment down below more ROBLOX studio ideas ;)!

Remember this: "A Smooth Sea, never made a Skilled Sailor." - Franklin D. Roosevelt

SCRIPT IN THE VIDEO:

Make sure to add the script into the TextButton to make sure it works. Also, if I am not mistaking you do have to add a TextButton you can also add an ImageButton or a button of some sort that is clickable. Anyways, enough talking from me, the script is down below!
v
v
v

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent:TweenPosition(UDim2.new(0.5, -200, -0.5, -150),"Out", "Quint",1,true)
wait(1)
game.Players.LocalPlayer.PlayerGui.PopupGui.Enabled = false
end)