I made a Gui that appears/disappears depending on the team you are: not working?
Hi, its the first time im posting here.
01 | local Players = game:GetService( "Players" ) |
02 | local frame = script.Parent |
03 | local CameraPlayer = game.Players.LocalPlayer |
05 | game:GetService( "Teams" ).Ingame.PlayerAdded:Connect( function (player) |
06 | player.CharacterAdded:Connect( function () |
07 | if player.Name = = CameraPlayer.Name then |
09 | CameraPlayer.CameraMode = Enum.CameraMode.LockFirstPerson |
15 | game:GetService( "Teams" ).Lobby.PlayerAdded:Connect( function (player) |
16 | player.CharacterAdded:Connect( function () |
17 | if player.Name = = CameraPlayer.Name then |
19 | CameraPlayer.CameraMode = Enum.CameraMode.Classic |
so when the team is assigned the gui is not going visible / not visible
this is made on a localscript
i debugged a bit and all looks correct (know that camera player stuff are working)