Scripting Question

I want to know how to make a GUI Appear when the Roblox User joins the game, and the User presses the button and it goes away. Where do I put the script, and what the script is.

Thanks, Fusion.

(Since I’m new to scripting, If you have any other script stuff or anything to say, DM on Discord zFuse#0001)

You would have to use a local script to make it disappear when you click a button. For making a UI appear, you would need to enable it when a player get added (normally with a PlayerAdded function).

Since I don’t know these words related to Roblox or know where these are located, can you provide me with a screenshot or video on what it will look like in finished process?

Thanks, Fusion.

You would use the PlayerAdded event.

Where is that and how do i script and I want to know what the script is

Put the gui in starter gui then de-select the reset on death property or whatever it is and then add this inside your close button as a localscript

local gui = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function()
    gui.Enabled = false
end)

Basically you want to use the player Serice you can use that by doing this

local PlrService = game.GetService("Players")

Then we can run the event

local PlrService = game.GetService("Players")

Players.PlayerAdded:Connect(function(player)
	print(player.Name .. " played game!")
end)

Then you can do what you want in between the event line.

For that you would use the “PlayerAdded” event.

local Players = game.Players

Then use the “PlayerAdded” event like this:

Players.PlayerAdded:Connect(function(Player)
    Player.PlayerGui.(Put gui name).Visible = true
end)

Hope this helped!