How to make GUI not show on spawn

  1. What do you want to achieve? GUI that changes team.

  2. What is the issue? The script for it to change the team works. But, every time a person resets the GUI pops up again and I do not want that.

  3. What solutions have you tried so far? I looked on other sites and the DevForum and none fit my solution.

-- 


local p = script.Parent.Parent.Parent.Parent.Name

script.Parent.MouseButton1Click:Connect(function()
	game.Players[p].TeamColor = BrickColor.new("Really blue")
	game.Workspace[p].Humanoid.Health = 0
	script.Parent.Parent.Enabled = false
	script.Parent.Parent.Parent.TeamsGui.Enabled = false
end)



1 Like

You can just go to the screen GUI, click properties and uncheck ResetOnSpawn
image

3 Likes