I have a script that goes inside a textbutton and its suppose to remove the text button from your screen if your team color is any other color than medium stone grey. But its not working.
Here is my script:
local gui = script.Parent
local player = game.Players:WaitForChild("LocalPlayer")
local clonedGui
Check = function(propertyChanged)
if propertyChanged == player.TeamColor then
if player.TeamColor == BrickColor.new("Medium stone grey") then
gui.Visible = true
else
gui.Visible = false
end
end
end
Check()
player.Changed:connect(Check)

10 comments
oh
still didnt work the way i wanted
what is the way you wanted it to work?
Well, every playr has this in starter gui, in my game you change teams from medium stone grey to red or blue, and When that happens I want the gui/frame to not be visible.
sorry for the messy script..
no its ok
Does it work?
no...
OutPut?
nothing