I am trying to make a hide team select GUI, but It just won't work and I'm very confused.
I am somewhat of a noob, so please go easy on me!
script.textButton.MouseButton1Down:connect(function()
script.Parent,click.play()
script.Parent.Text = "Show"
script.Parent.Position = "{0, 0},{0.501, 0}"
script.Parent.Parent.visible = false
end)
script.textButton.MouseButton1Down:connect(function()
script.Parent,click.play()
script.Parent.Text = 'Hide'
script.Parent.Position = "{0.086, 0},{0.501, 0}"
script.Parent,Parent.visible = true
end)
Heres a script I'm trying to use for the team select itself.
game.Players.PlayerAdded:connect(function(newPlayer)
if newPlayer:IsInGroup(3738803) then
Parent.visible = true
if
[Im confused here]
end
Basically, this is me trying to make it hide if they're not in the group, but show when they are.
Note: The bottom script goes into an individual button.

2 comments
on the second script remove the if
Rather than if, you would do else, so its something like (If this then do this, else do this)