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:
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:
Variable for example openedUI = something
Tweenns + visible proprety
and make everything inside one screengui
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.
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👍
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.