-
What do you want to achieve? GUI that changes team.
-
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.
-
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)