How do I enable a GUI + blur when a player joins?

I have a menu GUI set up. I want it so when someone joins, the menu is visible for them.

Right now, I have the Menu in starter gui, the local script inside the menu.

Local script:

game.Players.PlayerAdded:Connect(function()
	script.Parent.Parent.Menu.Enabled = true
	game.Lighting.Blur.Size = game.Lighting.Blur.Size +3
end)

Literally make it visible in studio, and on the gui turn off ResetOnSpawn. Finally add a button that disables the GUI.

Really not too hard

If you have that script in StarterGui, it won’t work
Put it in StarterPlayerScripts, and you can also remove game.Players.PlayerAdded:Connect(function()

For GUI, you can do what @LxckyDev said. For the “play” button, you can add an event listener in the same StarterPlayerScript as mentioned before, like so:

local playBtn = game.Players.LocalPlayer.PlayerGui -- finish the path

playBtn.MouseButton1Click:Connect(function ()
   game.Lighting.Blur.Size = game.Lighting.Blur.Size - 3
   -- or tween it
end)
1 Like

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