function getPlayerFromChat(m)for C,r in ipairs(Players:GetPlayers())do if r.Name==m.PlayerName then return r end end end

function getPlayerFromChat(chat)
	for _,player in ipairs(Players:GetPlayers()) do
		if player.Name == chat.PlayerName then
			return player
		end
	end
end
