I havent tried anything because i have no clue how to do this or how roblox works pls help
It's hard to give you a technical answer if you don't tell us how much you already know.
Have you covered the basics?
Have you ever created a GUI where you could click it and it would do something?
You need to show some effort before we can help you!
This may be a bit hard for you to understand since you said that you don't know anything about roblox but ill just post my response instead
In a Local Script:
TextButton.MouseButton1Down:Connect(function() RemoteEvent:FireServer() end)
Now in a Server Script:
local PlayerService = game:GetService('Players') RemoteEvent.OnServerEvent:Connect(function(player) for i, player in pairs(PlayerService:GetChildren()) do player.PlayerGui.ScreenGui.Enabled = false end end)
if you don't understand most of what is happening, then i recommend you learn about Remote Events, Filtering Enabled, In pairs loops, and Player Gui events