PROBLEM: GUI becomes invisible after player dies. NEED HELP FOR: Making it visible after the player dies again. NOTES: Is there another way then to copy the GUI into the players StarterGui?
Server script:
player = game.Teams.Inferno:GetPlayers() inferno = game.Teams.Inferno wave = game.Teams.Wave game.Players.PlayerAdded:Connect(function(player) if player.Team == inferno then game.ReplicatedStorage.MakeVisible:FireAllClients(player) elseif player.Team == wave then game.ReplicatedStorage.MakeVisibleBlue:FireAllClients(player) end end)
Local script:
game.ReplicatedStorage.MakeVisibleBlue.OnClientEvent:Connect(function(player) player.PlayerGui.ScreenGui.BlueUpgradeGui.Visible = true player.PlayerGui.ScreenGui.BlueUpgradeGui.Active = true end)
Thank you for help! Tell me if there is NO OTHER way then to copy it to the playerGui...