Thanks.
function Deadesy(aplayer)
wait(1)
local player = game.Players:GetPlayerFromCharacter(aplayer)
if player ~= nil then -- ~= nil is not necessary unless you have to state it as a comparison
if not player.TeamColor == BrickColor.new("Forest green") then
game.ServerStorage.GuiFlash.Value = false
game.ServerStorage.GuiText.Value = (player.Name.. " has died!")
player.TeamColor = BrickColor.new("Forest green")
if script.SpeedAlert.Value == false then
game.ServerStorage.LightColor.Value = BrickColor.new("Toothpaste")
wait(5)
if script.SpeedAlert.Value == false then
game.ServerStorage.GuiText.Value = "..."
game.ServerStorage.LightColor.Value = BrickColor.new("Really black")
end
end
end
end
end
function Livesy(KILLA)
KILLA.Humanoid.Died:connect( function() Deadesy(KILLA) end )
end
function BANOs(Playa)
Playa.CharacterAdded:connect(Livesy)
end
game.Players.PlayerAdded:connect(BANOs)

1 comment
We won't just script your game for you. At least make a few attempts at coversion before asking a question here.