Why This Function Didn't Work

Hello i Created script for my gamemode Melons… But IDK Why it didnt work

Here is script :

[lua]
function GM:PlayerDeath(victim, wep, attacker)
if attacker:Team() == “TEAM_MELON” then
if victim:Team() == “TEAM_MELON” then
Msg("[TEAMKILL] “…attacker:Nick()…” killed “…victim:Nick()…”.
")
else
victim:SetTeam(“TEAM_Melon”)
end
end
end
[/lua]

somebody can help me???

Remove the quotes from the team name.

Put your code in [ lua ] [ /lua ] tags in future, remove the spaces when you actually use them.