-This script works perfectly fine, but not the way I specifically want it to. If a player dies he changes teams :D. To the team I want! But I only want this to be able to happen during a certain time. If I copy and paste this script from server storage, it doesn't work, it has to stay in workspace. If I disable it and re-able it, it doesn't work either. I guess I am trying to say I need this script to be able to be pasted from ServerStorage into fine working conditions.
Here is the script:
function Deadesy(blabz)
wait(1)
local a = game.Players:GetPlayerFromCharacter(blabz)
if a ~= nil then
a.TeamColor = BrickColor.new("Bright green")
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)

2 comments
There are some errors in the code here. Firstly, you're connecting the CharacterAdded event to the player variable, which you should be connecting to deathCheck. Second, I would change the variable for the argument in the deathCheck function to character and reflect these changes on line 10 and 11 so that he doesn't get confused.
yea it didnt work