How would i make something like this? (video down below)

Hello developers, i am wondering how i would make something similar to this where when having one ui open if you open another it will replace the previous ui with a new one to open.

this video shows it better as i’m bad at explaining things:

1 Like

Variable for example openedUI = something
Tweenns + visible proprety
and make everything inside one screengui

1 Like

You just need to set the original Frame to .Visible = false, and the new Frame to .Visible = true.

If you’d like to have some animations, you could use TweenService for that.

1 Like

idk smth like

local Player = game.players.localplayer
button.mouse1clickdown:Connect(function()
for i, v in pairs(Player.PlayerGui:GetChildren()) do
if v.Name ~= button.Name then
Enabled = false
else
Enabled = true
end
end
end)

Script is untested and just to give a reference👍

1 Like

Thanks for all your help i managed to fix the problem myself but thanks for responding!

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