local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Sprint = ReplicatedStorage.Sprint
Character:WaitForChild("Humanoid").Died:Connect(function()
if LocalPlayer.Team.Name == "Zombies" then
Sprint.Visible = true
end
end)
When a player dies , it detects if he is on Zombies if yes which in this case is yes then the visibility of a GUI called "Sprint" is visible. (Right now the gui sprint is invisible)
This local script is inside the StarterCharacterScripts.
When I die I am indeed on the zombie team so now idk what is the error.
