So I am trying to create a quiz thing were if they get a certain amount of points correct they get promoted. I have a idea of how I am going to do this but I want it so that when they click the start button it then will remove the UI’s at the start then go onto the next ones. I thought it would be to do with something with the enabled thing but I don’t understand it. I am quite new to scripting and don’t use UI’s often so if someone could help me that would be great.
You could change the UI’s visible property with the scripts or just :Destroy().
Using the visible property can be used for making the UI’s show up and disappear.
I just realized the script is a serverside script, try making it a local script. Also deleting stuff from StarterGui won’t affect the player, try doing:
local Player = game.Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local UI = PlayerGui["Start UI"]
--Continue on
local player = game.Players.LocalPlayer
local button = script.Parent
button.MouseButton1Clicked:Connect(function()
-- turn the visible off of all the guis u want or get the GUI and disable it
end)
it is because you didnt put frame.visible = true. also i recommend renaming these frame name to different so it works. just not same frame name. how is it supposed to close it and open another when frame names are same when you put in?
thats default name that they make it to when you make a frame and it says that “frames” so i recommended to name these frame name to different and put the frames name to the frame name that you name it to. so it works. just like.
You should get PlayerGui instead of StarterGui. Everything inside StarterGui clones into player’s PlayerGui when player joins to the game and player is seeing PlayerGui, not StarterGui.