How do I change the light which I have put in side a players sword according to his/her team color?

local tool = script.Parent
local light = tool.PointLight
local player = game.Players.localplayer

light.Color = player.TeamColor

This is inside handle which have the point light.