part = game.Workspace.Part
part.Touched:Connect(function(hit)
local player = game.Players:FindFirstChild(hit.Parent.Name)
if (player) then
part.Trail.Color = player.Team.TeamColor
end
end)
I was trying to make the part's trail colour the same as the team colour the player is in. But doesn't seem to work? Any ideas?
